*: optimize most of isXXXXX() macros
text data bss dec hex filename 824164 453 6812 831429 cafc5 busybox_old 823730 453 6812 830995 cae13 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -460,7 +460,7 @@ read_line(const char *prompt)
|
||||
line_buffer[--sz] = '\0';
|
||||
|
||||
line_ptr = line_buffer;
|
||||
while (*line_ptr && !isgraph(*line_ptr))
|
||||
while (*line_ptr != '\0' && (unsigned char)*line_ptr <= ' ')
|
||||
line_ptr++;
|
||||
return *line_ptr;
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ int ipcrm_main(int argc, char **argv)
|
||||
while ((c = getopt(argc, argv, "q:m:s:Q:M:S:h?")) != -1) {
|
||||
int result;
|
||||
int id = 0;
|
||||
int iskey = (isupper)(c);
|
||||
int iskey = isupper(c);
|
||||
|
||||
/* needed to delete semaphores */
|
||||
union semun arg;
|
||||
|
||||
Reference in New Issue
Block a user