function old new delta
run_applet_and_exit 758 755 -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-3) Total: -3 bytes
In standalone shell mode the saving increases to 17 bytes.
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
full_write2_str(a);
full_write2_str("\n");
i++;
- a += strlen(a) + 1;
+ while (*a++ != '\0')
+ continue;
}
return 0;
}
if (type == FIND_EXE_ONLY) {
const char *p = applet_names;
- i = 0;
- while (i < NUM_APPLETS) {
+ while (*p) {
if (strncmp(pfind, p, pf_len) == 0)
add_match(xstrdup(p));
- p += strlen(p) + 1;
- i++;
+ while (*p++ != '\0')
+ continue;
}
}
#endif
out1fmt("\n");
col = 0;
}
- a += strlen(a) + 1;
+ while (*a++ != '\0')
+ continue;
}
}
# endif