summaryrefslogtreecommitdiffstats
path: root/lib/utils.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-08-01 08:56:47 (GMT)
committerThomas Haller <thaller@redhat.com>2023-08-02 20:20:12 (GMT)
commit1010776d62a0e0ae261fff61c6c00f3f0c1ff2a0 (patch)
tree6472fb70628d554104964afbfda928ceecbde800 /lib/utils.c
parentd1d57846ccb8d9664206a0a3f735db26d4bc4c8d (diff)
downloadlibnl-1010776d62a0e0ae261fff61c6c00f3f0c1ff2a0.zip
libnl-1010776d62a0e0ae261fff61c6c00f3f0c1ff2a0.tar.gz
libnl-1010776d62a0e0ae261fff61c6c00f3f0c1ff2a0.tar.bz2
include: split and drop "netlink-private/types.h"
Move all the declarations from "netlink-private/types.h" to places closer to where they are used.
Diffstat (limited to 'lib/utils.c')
-rw-r--r--lib/utils.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/utils.c b/lib/utils.c
index 6320bcc..b2adad4 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -18,15 +18,18 @@
* ~~~~
*/
-#include <netlink-private/netlink.h>
-#include "base/nl-base-utils.h"
+#include <stdlib.h>
+#include <locale.h>
+
+#include <linux/socket.h>
+
#include <netlink/netlink.h>
#include <netlink/utils.h>
-#include <linux/socket.h>
-#include <stdlib.h> /* exit() */
-#ifdef HAVE_STRERROR_L
-#include <locale.h>
-#endif
+
+#include <netlink-private/netlink.h>
+
+#include "base/nl-base-utils.h"
+#include "nl-priv-dynamic-core/object-api.h"
/**
* Global variable indicating the desired level of debugging output.