[klibc] [klibc:update-dash] dash: input: Make preadbuffer static
klibc-bot for Herbert Xu
herbert at gondor.apana.org.au
Sat Mar 28 14:48:39 PDT 2020
Commit-ID: b660c1b8d408a311b9bbf631db53e5d507c54d43
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=b660c1b8d408a311b9bbf631db53e5d507c54d43
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Sun, 4 Jan 2015 21:37:13 +1100
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[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 at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/input.c | 4 ++--
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 f11ac842..aa5dcfcf 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 775291b8..90ff6c33 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);
More information about the klibc
mailing list