elfctl: whitespace cleanup
Reported by: jrm (in review D34283)
This commit is contained in:
parent
7442b63231
commit
828e50092a
@ -82,7 +82,7 @@ static struct option long_opts[] = {
|
|||||||
#define HOST_ENDIAN ELFDATA2LSB
|
#define HOST_ENDIAN ELFDATA2LSB
|
||||||
#define SWAP_ENDIAN ELFDATA2MSB
|
#define SWAP_ENDIAN ELFDATA2MSB
|
||||||
#else
|
#else
|
||||||
#define HOST_ENDIAN ELFDATA2MSB
|
#define HOST_ENDIAN ELFDATA2MSB
|
||||||
#define SWAP_ENDIAN ELFDATA2LSB
|
#define SWAP_ENDIAN ELFDATA2LSB
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -406,7 +406,7 @@ get_file_features(Elf *elf, int phcount, int fd, uint32_t *features,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* XXX: Name and descriptor are 4 byte aligned, however,
|
* XXX: Name and descriptor are 4 byte aligned, however,
|
||||||
* the size given doesn't include the padding.
|
* the size given doesn't include the padding.
|
||||||
*/
|
*/
|
||||||
namesz = roundup2(note.n_namesz, 4);
|
namesz = roundup2(note.n_namesz, 4);
|
||||||
name = malloc(namesz);
|
name = malloc(namesz);
|
||||||
@ -445,7 +445,7 @@ get_file_features(Elf *elf, int phcount, int fd, uint32_t *features,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* XXX: For now we look at only 4 bytes of the
|
* XXX: For now we look at only 4 bytes of the
|
||||||
* descriptor. This should respect descsz.
|
* descriptor. This should respect descsz.
|
||||||
*/
|
*/
|
||||||
if (note.n_descsz > sizeof(uint32_t))
|
if (note.n_descsz > sizeof(uint32_t))
|
||||||
warnx("Feature note is bigger than expected");
|
warnx("Feature note is bigger than expected");
|
||||||
|
Loading…
Reference in New Issue
Block a user