[acassen/keepalived] b71b55: ipwrapper.c: make functions void if return value n...
pqarmitage <[email protected]> Wed, 18 Jan 2017 02:49:38 -0800
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <587f4842d4b60_2f193f9b89fed134143131@hookshot-fe1-cp1-prd.iad.github.net.mail> |
Branch: refs/heads/master
Home: https://github.com/acassen/keepalived
Commit: b71b5564f08a4e071aa483c2de76f8ded9959f33
https://github.com/acassen/keepalived/commit/b71b5564f08a4e071aa483c2de76f8ded9959f33
Author: Quentin Armitage <[email protected]>
Date: 2017-01-18 (Wed, 18 Jan 2017)
Changed paths:
M keepalived/check/ipwrapper.c
Log Message:
-----------
ipwrapper.c: make functions void if return value not used or constant
Several functions in check/ipwrapper.c were always returnung the same
value, and the code calling the functions then checked and returned an
error if the return value was not the value always returned. Also, for
some functions returning a value the return value was never checked in
the calling function.
Making the functions void, and removing the if (...) makes the code easier
to read, and potentially slightly more efficient.
Signed-off-by: Quentin Armitage <[email protected]>
Commit: c6c8af34839e676d5083d9bf9622e47806d745b0
https://github.com/acassen/keepalived/commit/c6c8af34839e676d5083d9bf9622e47806d745b0
Author: pqarmitage <[email protected]>
Date: 2017-01-18 (Wed, 18 Jan 2017)
Changed paths:
M keepalived/check/ipwrapper.c
Log Message:
-----------
Merge pull request #499 from pqarmitage/fixes
ipwrapper.c: make functions void if return value not used or constant
Compare: https://github.com/acassen/keepalived/compare/d33461bb7b45...c6c8af34839e
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel