]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: reduce max indentation level in init_service_resolver()
authorPhil Sutter <phil@nwl.cc>
Sat, 28 Nov 2015 00:00:02 +0000 (01:00 +0100)
committerStephen Hemminger <shemming@brocade.com>
Sun, 29 Nov 2015 19:48:24 +0000 (11:48 -0800)
commit596307ea3d638ea037017b0d6f31f2d04fddd296
treee0262bafdeba6aeed8cb4aa41cc1e72ffd9e9590
parentdb3ef44c5433aa50bae6f88736ad350fb14fc2cf
ss: reduce max indentation level in init_service_resolver()

Exit early or continue on error instead of putting conditional into
conditional to make reading the code a bit easier.

Also, the call to memcpy() can be skipped by initialising prog with the
desired prefix.

Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c