* [U-Boot] [PATCH] copy_filename: constify "src" arg
@ 2010-10-20 11:16 Mike Frysinger
2010-11-28 21:02 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-10-20 11:16 UTC (permalink / raw)
To: u-boot
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
include/net.h | 2 +-
net/net.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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;
--
1.7.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] copy_filename: constify "src" arg
2010-10-20 11:16 [U-Boot] [PATCH] copy_filename: constify "src" arg Mike Frysinger
@ 2010-11-28 21:02 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2010-11-28 21:02 UTC (permalink / raw)
To: u-boot
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
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Intuition, however illogical, is recognized as a command prerogative.
-- Kirk, "Obsession", stardate 3620.7
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-28 21:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-20 11:16 [U-Boot] [PATCH] copy_filename: constify "src" arg Mike Frysinger
2010-11-28 21:02 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox