diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-01-07 16:13:14 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-01-07 16:13:14 +0000 |
| commit | 6b404431aa7adea24120894d59daeebc5cbe9727 (patch) | |
| tree | f3ccda749daf6fe9f80f4ee99fbb5d1b0ed4cbb7 /libbb | |
| parent | 4e9ca75281a25dcdbb3e2d2fa79108b02afa43db (diff) | |
| download | busybox-w32-6b404431aa7adea24120894d59daeebc5cbe9727.tar.gz busybox-w32-6b404431aa7adea24120894d59daeebc5cbe9727.tar.bz2 busybox-w32-6b404431aa7adea24120894d59daeebc5cbe9727.zip | |
ps: fix build breakage from vda's recent commit
*: whitespace fixes
Diffstat (limited to 'libbb')
| -rw-r--r-- | libbb/compare_string_array.c | 10 | ||||
| -rw-r--r-- | libbb/lineedit.c | 2 | ||||
| -rw-r--r-- | libbb/xfuncs.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c index 7b5ce856d..151b50817 100644 --- a/libbb/compare_string_array.c +++ b/libbb/compare_string_array.c | |||
| @@ -70,9 +70,9 @@ int index_in_substrings(const char *strings, const char *key) | |||
| 70 | 70 | ||
| 71 | const char *nth_string(const char *strings, int n) | 71 | const char *nth_string(const char *strings, int n) |
| 72 | { | 72 | { |
| 73 | while (n) { | 73 | while (n) { |
| 74 | n--; | 74 | n--; |
| 75 | strings += strlen(strings) + 1; | 75 | strings += strlen(strings) + 1; |
| 76 | } | 76 | } |
| 77 | return strings; | 77 | return strings; |
| 78 | } | 78 | } |
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 69768da30..3ccddbcbf 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
| @@ -65,7 +65,7 @@ | |||
| 65 | enum { | 65 | enum { |
| 66 | /* We use int16_t for positions, need to limit line len */ | 66 | /* We use int16_t for positions, need to limit line len */ |
| 67 | MAX_LINELEN = CONFIG_FEATURE_EDITING_MAX_LEN < 0x7ff0 | 67 | MAX_LINELEN = CONFIG_FEATURE_EDITING_MAX_LEN < 0x7ff0 |
| 68 | ? CONFIG_FEATURE_EDITING_MAX_LEN | 68 | ? CONFIG_FEATURE_EDITING_MAX_LEN |
| 69 | : 0x7ff0 | 69 | : 0x7ff0 |
| 70 | }; | 70 | }; |
| 71 | 71 | ||
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 6d50bf9bc..25c36bd07 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
| @@ -166,7 +166,7 @@ int ndelay_on(int fd) | |||
| 166 | 166 | ||
| 167 | int close_on_exec_on(int fd) | 167 | int close_on_exec_on(int fd) |
| 168 | { | 168 | { |
| 169 | return fcntl(fd, F_SETFD, FD_CLOEXEC); | 169 | return fcntl(fd, F_SETFD, FD_CLOEXEC); |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | int ndelay_off(int fd) | 172 | int ndelay_off(int fd) |
