Make const-correct to avoid warning.
committer: mfx <mfx> 1144522792 +0000
This commit is contained in:
+1
-1
@@ -262,7 +262,7 @@ PackLinuxI386::buildLinuxLoader(
|
|||||||
cprElfHdr1 const *const hf = (cprElfHdr1 const *)fold;
|
cprElfHdr1 const *const hf = (cprElfHdr1 const *)fold;
|
||||||
fold_hdrlen = sizeof(hf->ehdr) + hf->ehdr.e_phentsize * hf->ehdr.e_phnum +
|
fold_hdrlen = sizeof(hf->ehdr) + hf->ehdr.e_phentsize * hf->ehdr.e_phnum +
|
||||||
sizeof(l_info);
|
sizeof(l_info);
|
||||||
if (0==*(int *)(fold_hdrlen + fold)) {
|
if (0==*(const int *)(fold_hdrlen + fold)) {
|
||||||
// inconsistent SIZEOF_HEADERS in *.lds (ld, binutils)
|
// inconsistent SIZEOF_HEADERS in *.lds (ld, binutils)
|
||||||
fold_hdrlen = umax(0x80, fold_hdrlen);
|
fold_hdrlen = umax(0x80, fold_hdrlen);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user