summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorrse <rse@FreeBSD.org>2008-06-07 16:28:20 +0000
committerrse <rse@FreeBSD.org>2008-06-07 16:28:20 +0000
commit535847b5c97b00dcaf1eb33a69d2f7cdd44abe01 (patch)
treec140f794fbb84c8c897c9dc61b95bc9baf0f10c7 /bin
parentb71d06b94128098e187773c0a8f750f5f671e7c3 (diff)
downloadFreeBSD-src-535847b5c97b00dcaf1eb33a69d2f7cdd44abe01.zip
FreeBSD-src-535847b5c97b00dcaf1eb33a69d2f7cdd44abe01.tar.gz
use 'const' for the parameters of the two static functions unalias() and hashalias()
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/alias.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/sh/alias.c b/bin/sh/alias.c
index d27b65f..a4a4035 100644
--- a/bin/sh/alias.c
+++ b/bin/sh/alias.c
@@ -52,8 +52,8 @@ __FBSDID("$FreeBSD$");
STATIC struct alias *atab[ATABSIZE];
STATIC void setalias(char *, char *);
-STATIC int unalias(char *);
-STATIC struct alias **hashalias(char *);
+STATIC int unalias(const char *);
+STATIC struct alias **hashalias(const char *);
STATIC
void
@@ -110,7 +110,7 @@ setalias(char *name, char *val)
}
STATIC int
-unalias(char *name)
+unalias(const char *name)
{
struct alias *ap, **app;
@@ -247,7 +247,7 @@ unaliascmd(int argc __unused, char **argv __unused)
}
STATIC struct alias **
-hashalias(char *p)
+hashalias(const char *p)
{
unsigned int hashval;
OpenPOWER on IntegriCloud