From 3e767019615e4d569b8a02bc801fd8f3ee7e6e77 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sat, 10 Oct 2015 17:41:49 +0200 Subject: [PATCH] platform: fix wrongly return "FALSE" instead of "NULL" for pointer type --- src/platform/nm-platform.c | 10 +++++----- 1 file 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); }