mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Work around compiler/assembler problem and reduce code size at the same time.
This commit is contained in:
parent
ef8b112d77
commit
fa15f702d2
@ -96,11 +96,16 @@ int uname_main(int argc, char **argv)
|
|||||||
|
|
||||||
strcpy(uname_info.processor, "unknown");
|
strcpy(uname_info.processor, "unknown");
|
||||||
|
|
||||||
for (opt=0,delta=utsname_offset ; toprint ; delta++, toprint >>= 1) {
|
delta=utsname_offset;
|
||||||
|
do {
|
||||||
if (toprint & 1) {
|
if (toprint & 1) {
|
||||||
printf("%s%s", (opt++==0)? "": " ", ((char *)(&uname_info)) + *delta);
|
printf(((char *)(&uname_info)) + *delta);
|
||||||
|
if (toprint > 1) {
|
||||||
|
putchar(' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
++delta;
|
||||||
|
} while (toprint >>= 1);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user