Patchwork [U-Boot] copy_filename: constify "src" arg

login
register
mail settings
Submitter Mike Frysinger
Date Oct. 20, 2010, 11:16 a.m.
Message ID <1287573400-6455-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/71899/
State Accepted
Commit b920ee9db254786ee909705d904ef509758afbdc
Delegated to: Wolfgang Denk
Headers show

Comments

Mike Frysinger - Oct. 20, 2010, 11:16 a.m.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 include/net.h |    2 +-
 net/net.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Wolfgang Denk - Nov. 28, 2010, 9:02 p.m.
Dear Mike Frysinger,

In message <1287573400-6455-1-git-send-email-vapier@gentoo.org> you wrote:
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  include/net.h |    2 +-
>  net/net.c     |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied to "next" branch, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/include/net.h b/include/net.h
index a29dafc..dd673f0 100644
--- a/include/net.h
+++ b/include/net.h
@@ -526,7 +526,7 @@  extern ushort string_to_VLAN(char *s);
 extern ushort getenv_VLAN(char *);
 
 /* 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 */
 extern unsigned int random_port(void);
diff --git a/net/net.c b/net/net.c
index d5a5429..7576419 100644
--- a/net/net.c
+++ b/net/net.c
@@ -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);
 }
 
-void copy_filename (char *dst, char *src, int size)
+void copy_filename (char *dst, const char *src, int size)
 {
 	if (*src && (*src == '"')) {
 		++src;