string_to_VLAN: constify "var" arg

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2010-10-20 07:16:48 -04:00 committed by Wolfgang Denk
parent b920ee9db2
commit 2e3ef6e4e4
2 changed files with 2 additions and 2 deletions

View File

@ -520,7 +520,7 @@ extern IPaddr_t string_to_ip(char *s);
extern void VLAN_to_string (ushort x, char *s);
/* Convert a string to a vlan id */
extern ushort string_to_VLAN(char *s);
extern ushort string_to_VLAN(const char *s);
/* read a VLAN id from an environment variable */
extern ushort getenv_VLAN(char *);

View File

@ -1913,7 +1913,7 @@ void VLAN_to_string(ushort x, char *s)
sprintf(s, "%d", x & VLAN_IDMASK);
}
ushort string_to_VLAN(char *s)
ushort string_to_VLAN(const char *s)
{
ushort id;