summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2008-01-07 16:13:14 +0000
committerDenis Vlasenko2008-01-07 16:13:14 +0000
commit6b404431aa7adea24120894d59daeebc5cbe9727 (patch)
treef3ccda749daf6fe9f80f4ee99fbb5d1b0ed4cbb7 /libbb
parent4e9ca75281a25dcdbb3e2d2fa79108b02afa43db (diff)
downloadbusybox-6b404431aa7adea24120894d59daeebc5cbe9727.zip
busybox-6b404431aa7adea24120894d59daeebc5cbe9727.tar.gz
ps: fix build breakage from vda's recent commit
*: whitespace fixes
Diffstat (limited to 'libbb')
-rw-r--r--libbb/compare_string_array.c10
-rw-r--r--libbb/lineedit.c2
-rw-r--r--libbb/xfuncs.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c
index 7b5ce85..151b508 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)
const char *nth_string(const char *strings, int n)
{
- while (n) {
- n--;
- strings += strlen(strings) + 1;
- }
- return strings;
+ while (n) {
+ n--;
+ strings += strlen(strings) + 1;
+ }
+ return strings;
}
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 69768da..3ccddbc 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -65,7 +65,7 @@
enum {
/* We use int16_t for positions, need to limit line len */
MAX_LINELEN = CONFIG_FEATURE_EDITING_MAX_LEN < 0x7ff0
- ? CONFIG_FEATURE_EDITING_MAX_LEN
+ ? CONFIG_FEATURE_EDITING_MAX_LEN
: 0x7ff0
};
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c
index 6d50bf9..25c36bd 100644
--- a/libbb/xfuncs.c
+++ b/libbb/xfuncs.c
@@ -166,7 +166,7 @@ int ndelay_on(int fd)
int close_on_exec_on(int fd)
{
- return fcntl(fd, F_SETFD, FD_CLOEXEC);
+ return fcntl(fd, F_SETFD, FD_CLOEXEC);
}
int ndelay_off(int fd)