]> git.tue.mpg.de Git - paraslash.git/commit
net: makesock(): Combine code for passive sockets.
authorAndre Noll <maan@systemlinux.org>
Sun, 8 Sep 2013 04:37:30 +0000 (04:37 +0000)
committerAndre Noll <maan@systemlinux.org>
Wed, 1 Jan 2014 17:40:15 +0000 (17:40 +0000)
commit88bdd8c140222998d4ec31812cbf8ef108baa910
tree15a376e2a9f37aa0be8a22ed7d816fd3fe25815a
parent39e1307682cb23c0007280a8a823d3017808f207
net: makesock(): Combine code for passive sockets.

Make use of  the fact that

if (a && b)
foo;
if (a)
bar;
else
baz;

is equivalent to

if (a) {
if (b)
foo;
bar;
} else
baz;

but the second form is easier to read, IMHO.
net.c