diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-02-02 21:49:48 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-02-02 21:49:48 +0000 |
commit | 1767962c45749739090b5f7f5a8fb037548505e0 (patch) | |
tree | 943ceb2eac43f7e66c18cc89e834ee784737fdb8 /package/busybox/busybox-1.9.0-stty.patch | |
parent | 25f6af28eeef3f3875f5b145779e1ae254536501 (diff) | |
download | buildroot-novena-1767962c45749739090b5f7f5a8fb037548505e0.tar.gz buildroot-novena-1767962c45749739090b5f7f5a8fb037548505e0.zip |
busybox: More 1.9.0 patches
Diffstat (limited to 'package/busybox/busybox-1.9.0-stty.patch')
-rw-r--r-- | package/busybox/busybox-1.9.0-stty.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.9.0-stty.patch b/package/busybox/busybox-1.9.0-stty.patch new file mode 100644 index 000000000..d9e7b2e95 --- /dev/null +++ b/package/busybox/busybox-1.9.0-stty.patch @@ -0,0 +1,37 @@ +--- busybox-1.9.0/coreutils/stty.c Fri Dec 21 22:00:29 2007 ++++ busybox-1.9.0-stty/coreutils/stty.c Sat Feb 2 18:55:40 2008 +@@ -780,30 +780,14 @@ + + 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 { |