mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
use 'const' for the parameters of the two static functions unalias() and hashalias()
This commit is contained in:
parent
401b3c20cc
commit
a65d88d15d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179639
|
@ -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 a new issue