summaryrefslogtreecommitdiff
path: root/pkg/ubase/patch/0007-stty-simplify.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ubase/patch/0007-stty-simplify.patch')
-rw-r--r--pkg/ubase/patch/0007-stty-simplify.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/pkg/ubase/patch/0007-stty-simplify.patch b/pkg/ubase/patch/0007-stty-simplify.patch
deleted file mode 100644
index e4039231..00000000
--- a/pkg/ubase/patch/0007-stty-simplify.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 450963b1b1167b6b38dd0d78612015d79a9381bf Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= <maandree@kth.se>
-Date: Sat, 2 Apr 2016 02:39:15 +0200
-Subject: [PATCH] stty: simplify
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Mattias Andrée <maandree@kth.se>
----
- stty.c | 10 +++-------
- 1 file changed, 3 insertions(+), 7 deletions(-)
-
-diff --git a/stty.c b/stty.c
-index e21ab24..9da517c 100644
---- a/stty.c
-+++ b/stty.c
-@@ -438,12 +438,12 @@ parseoperand_mode(char *arg, struct termios *mode)
- }
-
- static long long
--estrtonum_radix(const char *numstr, long long minval, long long maxval, int radix)
-+estrtonum_anyradix(const char *numstr, long long minval, long long maxval)
- {
- long long ll = 0;
- char *ep;
- errno = 0;
-- ll = strtoll(numstr, &ep, radix);
-+ ll = strtoll(numstr, &ep, 0);
- if (numstr == ep || *ep != '\0')
- eprintf("strtoll %s: invalid\n", numstr);
- else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval)
-@@ -475,12 +475,8 @@ parseoperand_key(char *arg0, char *arg1, struct termios *mode)
- value = arg1[0];
- else if (arg1[0] == '^')
- value = (cc_t)(arg1[1]) & ~0x60;
-- else if (strstr(arg1, "0x") == arg1)
-- value = estrtonum_radix(arg1 + 2, 0, CC_MAX, 16);
-- else if (arg1[0] == '0' && arg1[1])
-- value = estrtonum_radix(arg1 + 1, 0, CC_MAX, 8);
- else
-- value = estrtonum_radix(arg1 + 0, 0, CC_MAX, 10);
-+ value = estrtonum_anyradix(arg1, 0, CC_MAX);
-
- mode->c_cc[op->index] = value;
- return 0;
---
-2.8.1
-