]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: change methods returning virNWFilterIPAddrLearnReq to use bool
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 26 Apr 2018 11:31:06 +0000 (12:31 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 3 May 2018 16:00:57 +0000 (17:00 +0100)
commitb6ac5a82b969054885bdaf5404ab35d5f3fb41f8
treefbc982099e9eefff25636310edb2216c6d1de25d
parentd60896321b56c92496d2a3bf43c6e57695ce3a37
nwfilter: change methods returning virNWFilterIPAddrLearnReq to use bool

Various methods return a virNWFilterIPAddrLearnReq struct, but the
callers are only interested in whether the return value is non-NULL.
It is thus preferrable to just return a bool.

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/nwfilter/nwfilter_gentech_driver.c
src/nwfilter/nwfilter_learnipaddr.c
src/nwfilter/nwfilter_learnipaddr.h