提交 2e3ef6e4 编写于 作者: M Mike Frysinger 提交者: Wolfgang Denk

string_to_VLAN: constify "var" arg

Signed-off-by: NMike Frysinger <vapier@gentoo.org>
上级 b920ee9d
......@@ -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 *);
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册