From: Alexey Dobriyan Date: Fri, 6 Jan 2006 21:24:54 +0000 (-0800) Subject: [NET]: Endian-annotate in_aton() X-Git-Tag: v2.6.16-rc1~935^2~2^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2167dc62e9142b9a4bfb20f7e001c0f0a26fd8c;p=linux-2.6 [NET]: Endian-annotate in_aton() Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/include/linux/inet.h b/include/linux/inet.h index 3b5e9fdff8..6c5587af11 100644 --- a/include/linux/inet.h +++ b/include/linux/inet.h @@ -45,6 +45,6 @@ #ifdef __KERNEL__ #include -extern __u32 in_aton(const char *str); +extern __be32 in_aton(const char *str); #endif #endif /* _LINUX_INET_H */ diff --git a/net/core/utils.c b/net/core/utils.c index 587eb7787d..ac1d1fcf86 100644 --- a/net/core/utils.c +++ b/net/core/utils.c @@ -162,7 +162,7 @@ EXPORT_SYMBOL(net_srandom); * is otherwise not dependent on the TCP/IP stack. */ -__u32 in_aton(const char *str) +__be32 in_aton(const char *str) { unsigned long l; unsigned int val;