summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-15 14:58:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-15 15:05:38 +0200
commit9d699b790cfc3afa6766a1d047def724cc42386e (patch)
tree598916fa36ae96b851e20e6543d7912a5db0ac28 /include
parent3f732effd575831a21708dd8a4e2161a4f411f71 (diff)
downloadbarebox-9d699b790cfc3afa6766a1d047def724cc42386e.tar.gz
barebox-9d699b790cfc3afa6766a1d047def724cc42386e.tar.xz
net: use static string in string_to_ip
Simplify usage of ip_to_string by using a static string. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index 3f2187eca..01e4b2258 100644
--- a/include/net.h
+++ b/include/net.h
@@ -274,7 +274,7 @@ static inline void net_copy_uint32(uint32_t *to, uint32_t *from)
}
/* Convert an IP address to a string */
-char *ip_to_string (IPaddr_t x, char *s);
+char *ip_to_string (IPaddr_t x);
/* Convert a string to ip address */
int string_to_ip(const char *s, IPaddr_t *ip);