diff options
author | Thomas Haller <thaller@redhat.com> | 2015-10-10 17:41:49 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-10-10 19:46:28 +0200 |
commit | 3e767019615e4d569b8a02bc801fd8f3ee7e6e77 (patch) | |
tree | 4bb6694fd6759c81a40f41b7fc5d77ce418bd8cb | |
parent | 1ef431ab3854f12de04a68a006aec8f5ce68ba20 (diff) | |
download | NetworkManager-3e767019615e4d569b8a02bc801fd8f3ee7e6e77.tar.gz |
platform: fix wrongly return "FALSE" instead of "NULL" for pointer type
-rw-r--r-- | src/platform/nm-platform.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c index 1549321db4..9007fb4384 100644 --- a/src/platform/nm-platform.c +++ b/src/platform/nm-platform.c @@ -1847,7 +1847,7 @@ nm_platform_ip6_address_get_all (NMPlatform *self, int ifindex) gboolean nm_platform_ip4_address_add (NMPlatform *self, - int ifindex, + int ifindex, in_addr_t address, in_addr_t peer_address, int plen, @@ -1959,9 +1959,9 @@ nm_platform_ip6_address_delete (NMPlatform *self, int ifindex, struct in6_addr a const NMPlatformIP4Address * nm_platform_ip4_address_get (NMPlatform *self, int ifindex, in_addr_t address, int plen) { - _CHECK_SELF (self, klass, FALSE); + _CHECK_SELF (self, klass, NULL); - g_return_val_if_fail (plen > 0, FALSE); + g_return_val_if_fail (plen > 0, NULL); return klass->ip4_address_get (self, ifindex, address, plen); } @@ -1969,9 +1969,9 @@ nm_platform_ip4_address_get (NMPlatform *self, int ifindex, in_addr_t address, i const NMPlatformIP6Address * nm_platform_ip6_address_get (NMPlatform *self, int ifindex, struct in6_addr address, int plen) { - _CHECK_SELF (self, klass, FALSE); + _CHECK_SELF (self, klass, NULL); - g_return_val_if_fail (plen > 0, FALSE); + g_return_val_if_fail (plen > 0, NULL); return klass->ip6_address_get (self, ifindex, address, plen); } |