diff options
author | Denis Vlasenko | 2007-11-04 04:10:17 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-11-04 04:10:17 +0000 |
commit | bfc3d82256c45fb1e6e04ca85fac8a65b34b72a1 (patch) | |
tree | efe5bed86f389cec7e7e4f73b12b58783327e4b2 /include | |
parent | 681023650e69f6e4fa959c5c6f0480d4a0edf906 (diff) | |
download | busybox-bfc3d82256c45fb1e6e04ca85fac8a65b34b72a1.zip busybox-bfc3d82256c45fb1e6e04ca85fac8a65b34b72a1.tar.gz |
ifconfig: code shrink
adjtimex: code shrink
libbb: move nth_string function into libbb
hdparm: nth_string was here
text data bss dec hex filename
730013 10334 12032 752379 b7afb busybox_old
730093 10134 12032 752259 b7a83 busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 71f439f..77c678c 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -846,10 +846,13 @@ extern int correct_password(const struct passwd *pw); /* Returns a ptr to static storage */ extern char *pw_encrypt(const char *clear, const char *salt); extern int obscure(const char *old, const char *newval, const struct passwd *pwdp); -extern int index_in_str_array(const char *const string_array[], const char *key); -extern int index_in_strings(const char *strings, const char *key); -extern int index_in_substr_array(const char *const string_array[], const char *key); -extern int index_in_substrings(const char *strings, const char *key); + +int index_in_str_array(const char *const string_array[], const char *key); +int index_in_strings(const char *strings, const char *key); +int index_in_substr_array(const char *const string_array[], const char *key); +int index_in_substrings(const char *strings, const char *key); +const char *nth_string(const char *strings, int n); + extern void print_login_issue(const char *issue_file, const char *tty); extern void print_login_prompt(void); |