summaryrefslogtreecommitdiff
path: root/net/core/utils.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2017-03-24 00:58:26 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-24 23:27:19 +0300
commite013fb7c4c9fa8aa914d85d8b466c990b2eaebb6 (patch)
tree918d61833c072dd18d934ef353353b77566d2878 /net/core/utils.c
parent7cc61db9c7e6c985798d5419207fbd8cdb505c7b (diff)
downloadlinux-e013fb7c4c9fa8aa914d85d8b466c990b2eaebb6.tar.xz
net: make in_aton() 32-bit internally
Converting IPv4 address doesn't need 64-bit arithmetic. Space savings: 10 bytes! add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-10 (-10) function old new delta in_aton 96 86 -10 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/utils.c')
-rw-r--r--net/core/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/utils.c b/net/core/utils.c
index 6592d7bbed39..d758880c09a7 100644
--- a/net/core/utils.c
+++ b/net/core/utils.c
@@ -51,7 +51,7 @@ EXPORT_SYMBOL(net_ratelimit);
__be32 in_aton(const char *str)
{
- unsigned long l;
+ unsigned int l;
unsigned int val;
int i;