diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-21 13:25:28 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-21 13:25:28 +0000 |
commit | 557fb713e0f943ac9b87c9f3804ba24e73d55bb0 (patch) | |
tree | eda14f3179f0bddf125c2b8e8549cd6e35fa7242 /runit | |
parent | 1ec5eaecba0a0323f214825b83fabcc18a41884d (diff) | |
download | busybox-w32-557fb713e0f943ac9b87c9f3804ba24e73d55bb0.tar.gz busybox-w32-557fb713e0f943ac9b87c9f3804ba24e73d55bb0.tar.bz2 busybox-w32-557fb713e0f943ac9b87c9f3804ba24e73d55bb0.zip |
chpasswd: fixes and code shrink
update_passwd 732 734 +2
chpasswd_main 318 292 -26
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-26) Total: -24 bytes
text data bss dec hex filename
781564 1168 11900 794632 c2008 busybox_old
781548 1168 11900 794616 c1ff8 busybox_unstripped
Diffstat (limited to 'runit')
-rw-r--r-- | runit/runit_lib.c | 2 | ||||
-rw-r--r-- | runit/runit_lib.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runit/runit_lib.c b/runit/runit_lib.c index fcb66c3db..295b45f09 100644 --- a/runit/runit_lib.c +++ b/runit/runit_lib.c | |||
@@ -382,7 +382,6 @@ int seek_set(int fd,seek_pos pos) | |||
382 | { | 382 | { |
383 | if (lseek(fd,(off_t) pos,SEEK_SET) == -1) return -1; return 0; | 383 | if (lseek(fd,(off_t) pos,SEEK_SET) == -1) return -1; return 0; |
384 | } | 384 | } |
385 | #endif | ||
386 | 385 | ||
387 | 386 | ||
388 | /*** str_chr.c ***/ | 387 | /*** str_chr.c ***/ |
@@ -402,3 +401,4 @@ unsigned str_chr(const char *s,int c) | |||
402 | } | 401 | } |
403 | return t - s; | 402 | return t - s; |
404 | } | 403 | } |
404 | #endif | ||
diff --git a/runit/runit_lib.h b/runit/runit_lib.h index 25aeeaf70..1dadb6e47 100644 --- a/runit/runit_lib.h +++ b/runit/runit_lib.h | |||
@@ -125,7 +125,7 @@ extern unsigned pmatch(const char *, const char *, unsigned); | |||
125 | 125 | ||
126 | /*** str.h ***/ | 126 | /*** str.h ***/ |
127 | 127 | ||
128 | extern unsigned str_chr(const char *,int); /* never returns NULL */ | 128 | //extern unsigned str_chr(const char *,int); /* never returns NULL */ |
129 | 129 | ||
130 | #define str_diff(s,t) strcmp((s), (t)) | 130 | #define str_diff(s,t) strcmp((s), (t)) |
131 | #define str_equal(s,t) (!strcmp((s), (t))) | 131 | #define str_equal(s,t) (!strcmp((s), (t))) |