]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
extract_v4_addr(): Don't return a structure.
authorAndre Noll <maan@systemlinux.org>
Sat, 6 Jul 2013 14:01:26 +0000 (16:01 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 4 Sep 2013 22:23:13 +0000 (22:23 +0000)
When compiling with -Waggregate-return, gcc issues the following warning:

net.c: In function 'extract_v4_addr':
net.c:682: warning: function returns an aggregate
acl.c: In function 'acl_check_access':
acl.c:60: warning: function call has aggregate value

It's not entirely clear how bad it is these days to return a structure, but
extract_v4_addr() is the only function in the tree which does it. Since it
can be easily changed to take a pointer instead and there is only a single
caller, let's implement it this way.


No differences found