diff options
author | Thomas Haller <thaller@redhat.com> | 2014-12-17 10:38:46 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-12-18 17:36:57 +0100 |
commit | 422fbf48b94d51d0a874e29b4f82726b1bca0c92 (patch) | |
tree | 80fcde8ec8fa310c29f88e85eee1b311e5462384 /src | |
parent | e62aa4165f79a1b42a3c19258284bb945cdaf148 (diff) | |
download | NetworkManager-422fbf48b94d51d0a874e29b4f82726b1bca0c92.tar.gz |
all: move STRLEN() macro to global header nm-utils-internal.h
https://bugzilla.gnome.org/show_bug.cgi?id=741651
Diffstat (limited to 'src')
-rw-r--r-- | src/NetworkManagerUtils.h | 3 | ||||
-rw-r--r-- | src/dhcp-manager/nm-dhcp-dhclient-utils.c | 1 | ||||
-rw-r--r-- | src/dhcp-manager/tests/test-dhcp-dhclient.c | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/NetworkManagerUtils.h b/src/NetworkManagerUtils.h index a0dab49267..40315c6efc 100644 --- a/src/NetworkManagerUtils.h +++ b/src/NetworkManagerUtils.h @@ -51,9 +51,6 @@ nm_utils_ip6_route_metric_normalize (guint32 metric) int nm_spawn_process (const char *args); -/* macro to return strlen() of a compile time string. */ -#define STRLEN(str) ( sizeof ("" str) - 1 ) - /* check if @flags has exactly one flag (@check) set. You should call this * only with @check being a compile time constant and a power of two. */ #define NM_FLAGS_HAS(flags, check) \ diff --git a/src/dhcp-manager/nm-dhcp-dhclient-utils.c b/src/dhcp-manager/nm-dhcp-dhclient-utils.c index ec40bbd296..46e8e0b8dc 100644 --- a/src/dhcp-manager/nm-dhcp-dhclient-utils.c +++ b/src/dhcp-manager/nm-dhcp-dhclient-utils.c @@ -32,6 +32,7 @@ #include "nm-platform.h" #include "NetworkManagerUtils.h" #include "gsystem-local-alloc.h" +#include "nm-utils-internal.h" #define CLIENTID_TAG "send dhcp-client-identifier" diff --git a/src/dhcp-manager/tests/test-dhcp-dhclient.c b/src/dhcp-manager/tests/test-dhcp-dhclient.c index 5d360f54e4..4f7e96afde 100644 --- a/src/dhcp-manager/tests/test-dhcp-dhclient.c +++ b/src/dhcp-manager/tests/test-dhcp-dhclient.c @@ -32,6 +32,7 @@ #include "nm-utils.h" #include "nm-ip4-config.h" #include "nm-platform.h" +#include "nm-utils-internal.h" #define DEBUG 1 |