Skip to content
Snippets Groups Projects
Commit 2e3ef6e4 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

string_to_VLAN: constify "var" arg

parent b920ee9d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment