summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-05-03 13:46:31 +0200
committerThomas Haller <thaller@redhat.com>2022-05-09 19:20:19 +0200
commit501a7a3d001d7ca1a38adb22c714efcaa99a9aa3 (patch)
treec653255e88accee12d7089ac3133feb53e6ffe84
parent0b7dc4137d0b225959ad32e74b6378328399408c (diff)
daemon-helper: include "libnm-std-aux/nm-default-std.h" as first in "nm-daemon-helper.c"
All our sources should include one of the "nm-default*.h" headers first. That one drags in <config.h>, which must be included first and a few other basics. Which is the right "nm-default*.h" header depends on the component. In case of "nm-daemon-helper.c", it's "libnm-std-aux/nm-default-std.h".
-rw-r--r--src/nm-daemon-helper/nm-daemon-helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-daemon-helper/nm-daemon-helper.c b/src/nm-daemon-helper/nm-daemon-helper.c
index 21a71e3c4a..a101bf9b4f 100644
--- a/src/nm-daemon-helper/nm-daemon-helper.c
+++ b/src/nm-daemon-helper/nm-daemon-helper.c
@@ -2,6 +2,8 @@
/* Copyright (C) 2021 Red Hat, Inc. */
+#include "libnm-std-aux/nm-default-std.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <arpa/inet.h>
@@ -10,8 +12,6 @@
#include <nss.h>
#endif
-#include "libnm-std-aux/nm-std-aux.h"
-
enum {
RETURN_SUCCESS = 0,
RETURN_INVALID_CMD = 1,