diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-23 03:16:08 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-23 03:16:08 +0200 |
| commit | f2cbb03a378aa48f2e08b64877d54da3fab4ea6a (patch) | |
| tree | 35ff7449ba394e4e0a84a19a70eafa7b181d8d71 /util-linux | |
| parent | 7b4cd6f7b07b816c4b36d686fe47c5cfec7f5abf (diff) | |
| download | busybox-w32-f2cbb03a378aa48f2e08b64877d54da3fab4ea6a.tar.gz busybox-w32-f2cbb03a378aa48f2e08b64877d54da3fab4ea6a.tar.bz2 busybox-w32-f2cbb03a378aa48f2e08b64877d54da3fab4ea6a.zip | |
*: 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>
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/fdisk.c | 2 | ||||
| -rw-r--r-- | util-linux/ipcrm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 1bb3a9d4e..6a194fd1a 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
| @@ -460,7 +460,7 @@ read_line(const char *prompt) | |||
| 460 | line_buffer[--sz] = '\0'; | 460 | line_buffer[--sz] = '\0'; |
| 461 | 461 | ||
| 462 | line_ptr = line_buffer; | 462 | line_ptr = line_buffer; |
| 463 | while (*line_ptr && !isgraph(*line_ptr)) | 463 | while (*line_ptr != '\0' && (unsigned char)*line_ptr <= ' ') |
| 464 | line_ptr++; | 464 | line_ptr++; |
| 465 | return *line_ptr; | 465 | return *line_ptr; |
| 466 | } | 466 | } |
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c index 5dcda859a..5e18c2846 100644 --- a/util-linux/ipcrm.c +++ b/util-linux/ipcrm.c | |||
| @@ -122,7 +122,7 @@ int ipcrm_main(int argc, char **argv) | |||
| 122 | while ((c = getopt(argc, argv, "q:m:s:Q:M:S:h?")) != -1) { | 122 | while ((c = getopt(argc, argv, "q:m:s:Q:M:S:h?")) != -1) { |
| 123 | int result; | 123 | int result; |
| 124 | int id = 0; | 124 | int id = 0; |
| 125 | int iskey = (isupper)(c); | 125 | int iskey = isupper(c); |
| 126 | 126 | ||
| 127 | /* needed to delete semaphores */ | 127 | /* needed to delete semaphores */ |
| 128 | union semun arg; | 128 | union semun arg; |
