diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 4e6d1c3d6..92d99fbe8 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -964,20 +964,20 @@ void FAST_FUNC run_applet_no_and_exit(int applet_no, const char *name, char **ar | |||
964 | # endif /* NUM_APPLETS > 0 */ | 964 | # endif /* NUM_APPLETS > 0 */ |
965 | 965 | ||
966 | # if NUM_SCRIPTS > 0 | 966 | # if NUM_SCRIPTS > 0 |
967 | static int | 967 | int FAST_FUNC |
968 | find_script_by_name(const char *arg) | 968 | find_script_by_name(const char *name) |
969 | { | 969 | { |
970 | const char *s = script_names; | 970 | const char *s = script_names; |
971 | int i = 0; | 971 | int i = 0; |
972 | 972 | ||
973 | while (*s) { | 973 | while (*s) { |
974 | if (strcmp(arg, s) == 0) | 974 | if (strcmp(name, s) == 0) |
975 | return i; | 975 | return i; |
976 | i++; | 976 | i++; |
977 | while (*s++ != '\0') | 977 | while (*s++ != '\0') |
978 | continue; | 978 | continue; |
979 | } | 979 | } |
980 | return -1; | 980 | return -0x10000; /* make it so that NUM_APPLETS + <error> is still < 0 */ |
981 | } | 981 | } |
982 | 982 | ||
983 | static char * | 983 | static char * |