diff options
author | Zhang zhengguang <zhengguang.zhang@intel.com> | 2014-07-17 10:37:39 +0800 |
---|---|---|
committer | Zhang zhengguang <zhengguang.zhang@intel.com> | 2014-07-17 10:37:39 +0800 |
commit | 1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch) | |
tree | 6e991827d28537f7f40f20786c2354fd04a9fdad /tools/dhcp-test.c | |
parent | fbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff) | |
download | connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.gz connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.bz2 connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.zip |
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'tools/dhcp-test.c')
-rw-r--r-- | tools/dhcp-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dhcp-test.c b/tools/dhcp-test.c index 284656b3..c34e10a8 100644 --- a/tools/dhcp-test.c +++ b/tools/dhcp-test.c @@ -102,7 +102,7 @@ static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data) address = g_dhcp_client_get_address(dhcp_client); printf("address %s\n", address); - if (address == NULL) + if (!address) return; option_value = g_dhcp_client_get_option(dhcp_client, G_DHCP_SUBNET); @@ -143,7 +143,7 @@ int main(int argc, char *argv[]) printf("Create DHCP client for interface %d\n", index); dhcp_client = g_dhcp_client_new(G_DHCP_IPV4, index, &error); - if (dhcp_client == NULL) { + if (!dhcp_client) { handle_error(error); exit(0); } |