Skip to content

Commit

Permalink
net: make in_aton() 32-bit internally
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Mar 24, 2017
1 parent 7cc61db commit e013fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e013fb7

Please sign in to comment.