summaryrefslogtreecommitdiffstats
path: root/bin/sh/histedit.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2012-01-01 22:17:12 +0000
committerjilles <jilles@FreeBSD.org>2012-01-01 22:17:12 +0000
commit8152f4c1927b535528fef82bc9449a9ffcfbfae5 (patch)
treec9bf6a1be78ff3a781bf9a2df71ecff91e72ee4f /bin/sh/histedit.c
parentbbd60abdf3ff8bb1ab2fbb59c1a4df2ee213f69e (diff)
downloadFreeBSD-src-8152f4c1927b535528fef82bc9449a9ffcfbfae5.zip
FreeBSD-src-8152f4c1927b535528fef82bc9449a9ffcfbfae5.tar.gz
sh: Make various functions static.
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r--bin/sh/histedit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c
index 4619baf..e29bcab 100644
--- a/bin/sh/histedit.c
+++ b/bin/sh/histedit.c
@@ -70,6 +70,8 @@ int displayhist;
static FILE *el_in, *el_out, *el_err;
static char *fc_replace(const char *, char *, char *);
+static int not_fcnumber(const char *);
+static int str_to_event(const char *, int);
/*
* Set history and editing status. Called whenever the status may
@@ -425,7 +427,7 @@ fc_replace(const char *s, char *p, char *r)
return (dest);
}
-int
+static int
not_fcnumber(const char *s)
{
if (s == NULL)
@@ -435,7 +437,7 @@ not_fcnumber(const char *s)
return (!is_number(s));
}
-int
+static int
str_to_event(const char *str, int last)
{
HistEvent he;
OpenPOWER on IntegriCloud