use 'const' for the parameters of the two static functions unalias() and hashalias()

This commit is contained in:
Ralf S. Engelschall 2008-06-07 16:28:20 +00:00
parent 401b3c20cc
commit a65d88d15d

View File

@ -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;