summary refs log tree commit diff
path: root/src/input.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-01-04 21:37:13 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-01-05 22:58:52 +1100
commitdee20c64b4d2625bbe6e7329404e749d5b22b2f3 (patch)
tree39d291a582f3e4a2ee32b22395a71ca450a4921a /src/input.c
parentexpand: Fixed "$@" expansion when EXP_FULL is false (diff)
downloaddash-dee20c64b4d2625bbe6e7329404e749d5b22b2f3.tar.gz
dash-dee20c64b4d2625bbe6e7329404e749d5b22b2f3.zip
input: Make preadbuffer static
The function preadbuffer should be static as it's only used in
input.c.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--src/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c
index f11ac84..aa5dcfc 100644
--- a/src/input.c
+++ b/src/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;