Commit e013fb7c authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

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: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7cc61db9
...@@ -51,7 +51,7 @@ EXPORT_SYMBOL(net_ratelimit); ...@@ -51,7 +51,7 @@ EXPORT_SYMBOL(net_ratelimit);
__be32 in_aton(const char *str) __be32 in_aton(const char *str)
{ {
unsigned long l; unsigned int l;
unsigned int val; unsigned int val;
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment