use 'const' for the parameters of the two static functions unalias() and hashalias()
This commit is contained in:
parent
401b3c20cc
commit
a65d88d15d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user