copy_filename: constify "src" arg

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

View file

@ -526,7 +526,7 @@ extern ushort string_to_VLAN(char *s);
extern ushort getenv_VLAN(char *); extern ushort getenv_VLAN(char *);
/* copy a filename (allow for "..." notation, limit length) */ /* copy a filename (allow for "..." notation, limit length) */
extern void copy_filename (char *dst, char *src, int size); extern void copy_filename (char *dst, const char *src, int size);
/* get a random source port */ /* get a random source port */
extern unsigned int random_port(void); extern unsigned int random_port(void);

View file

@ -1865,7 +1865,7 @@ NetSetIP(volatile uchar * xip, IPaddr_t dest, int dport, int sport, int len)
ip->ip_sum = ~NetCksum((uchar *)ip, IP_HDR_SIZE_NO_UDP / 2); ip->ip_sum = ~NetCksum((uchar *)ip, IP_HDR_SIZE_NO_UDP / 2);
} }
void copy_filename (char *dst, char *src, int size) void copy_filename (char *dst, const char *src, int size)
{ {
if (*src && (*src == '"')) { if (*src && (*src == '"')) {
++src; ++src;