summary refs log tree commit diff
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-07-13 21:40:51 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-07-13 22:07:37 +0800
commit2cf4ab1d547a63fa6048325ff7ff862454fbdb4f (patch)
treeeb74493a8a16365fd8c386505ade183b132b4b34
parent[BUILTIN] Made t_lex reentrant (diff)
downloaddash-2cf4ab1d547a63fa6048325ff7ff862454fbdb4f.tar.gz
dash-2cf4ab1d547a63fa6048325ff7ff862454fbdb4f.zip
[INPUT] Made setinputfd static
This function is no longer used anywhere else.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--ChangeLog1
-rw-r--r--src/input.c3
-rw-r--r--src/input.h1
3 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5565e06..53d5b7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 	* Fixed 3,4-argument cases for test per POSIX.
 	* Made aexpr/oexpr non-recursive.
 	* Made t_lex reentrant.
+	* Made setinputfd static.
 
 2008-05-19  Herbert Xu <herbert@gondor.apana.org.au>
 
diff --git a/src/input.c b/src/input.c
index bc84e57..27c4fd1 100644
--- a/src/input.c
+++ b/src/input.c
@@ -107,6 +107,7 @@ EditLine *el;			/* cookie for editline package */
 
 STATIC void pushfile(void);
 static int preadfd(void);
+static void setinputfd(int fd, int push);
 
 #ifdef mkinit
 INCLUDE <stdio.h>
@@ -422,7 +423,7 @@ out:
  * interrupts off.
  */
 
-void
+static void
 setinputfd(int fd, int push)
 {
 	if (push) {
diff --git a/src/input.h b/src/input.h
index 1d6f528..50a7797 100644
--- a/src/input.h
+++ b/src/input.h
@@ -57,7 +57,6 @@ void pungetc(void);
 void pushstring(char *, void *);
 void popstring(void);
 int setinputfile(const char *, int);
-void setinputfd(int, int);
 void setinputstring(char *);
 void popfile(void);
 void popallfiles(void);