diff options
Diffstat (limited to 'patches/busybox-1.9.0/generic/busybox-1.9.0-stty.patch')
-rw-r--r-- | patches/busybox-1.9.0/generic/busybox-1.9.0-stty.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/patches/busybox-1.9.0/generic/busybox-1.9.0-stty.patch b/patches/busybox-1.9.0/generic/busybox-1.9.0-stty.patch deleted file mode 100644 index 67ef27867..000000000 --- a/patches/busybox-1.9.0/generic/busybox-1.9.0-stty.patch +++ /dev/null @@ -1,46 +0,0 @@ -Subject: busybox 1.9.0 fixes -From: http://busybox.net/downloads/fixes-1.9.0 - ---- - coreutils/stty.c | 24 ++++-------------------- - 1 file changed, 4 insertions(+), 20 deletions(-) - -Index: busybox-1.9.0/coreutils/stty.c -=================================================================== ---- busybox-1.9.0.orig/coreutils/stty.c -+++ busybox-1.9.0/coreutils/stty.c -@@ -780,30 +780,14 @@ static const struct suffix_mult stty_suf - - static const struct mode_info *find_mode(const char *name) - { -- int i = 0; -- const char *m = mode_name; -- -- while (*m) { -- if (strcmp(name, m) == 0) -- return &mode_info[i]; -- m += strlen(m) + 1; -- i++; -- } -- return NULL; -+ int i = index_in_strings(mode_name, name); -+ return i >= 0 ? &mode_info[i] : NULL; - } - - static const struct control_info *find_control(const char *name) - { -- int i = 0; -- const char *m = mode_name; -- -- while (*m) { -- if (strcmp(name, m) == 0) -- return &control_info[i]; -- m += strlen(m) + 1; -- i++; -- } -- return NULL; -+ int i = index_in_strings(control_name, name); -+ return i >= 0 ? &control_info[i] : NULL; - } - - enum { |