diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-01-04 21:37:13 +1100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-03-28 21:42:54 +0000 |
commit | b660c1b8d408a311b9bbf631db53e5d507c54d43 (patch) | |
tree | 8a81d336493cbdfb8a678242888f69518d2ab5d5 | |
parent | 57da2c169d4f22009725f47645ca6a4501f2475f (diff) | |
download | klibc-b660c1b8d408a311b9bbf631db53e5d507c54d43.tar.gz |
[klibc] dash: input: Make preadbuffer static
[ dash commit dee20c64b4d2625bbe6e7329404e749d5b22b2f3 ]
The function preadbuffer should be static as it's only used in
input.c.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | usr/dash/input.c | 4 | ||||
-rw-r--r-- | usr/dash/input.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/usr/dash/input.c b/usr/dash/input.c index f11ac84253f74..aa5dcfcf3901f 100644 --- a/usr/dash/input.c +++ b/usr/dash/input.c @@ -109,6 +109,7 @@ EditLine *el; /* cookie for editline package */ STATIC void pushfile(void); static int preadfd(void); static void setinputfd(int fd, int push); +static int preadbuffer(void); #ifdef mkinit INCLUDE <stdio.h> @@ -222,8 +223,7 @@ retry: * 4) Process input up to the next newline, deleting nul characters. */ -int -preadbuffer(void) +static int preadbuffer(void) { char *q; int more; diff --git a/usr/dash/input.h b/usr/dash/input.h index 775291b84716f..90ff6c33b832a 100644 --- a/usr/dash/input.h +++ b/usr/dash/input.h @@ -52,7 +52,6 @@ extern char *parsenextc; /* next character in input buffer */ int pgetc(void); int pgetc2(void); -int preadbuffer(void); void pungetc(void); void pushstring(char *, void *); void popstring(void); |