From 501a7a3d001d7ca1a38adb22c714efcaa99a9aa3 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 3 May 2022 13:46:31 +0200 Subject: [PATCH] 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 , 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". --- src/nm-daemon-helper/nm-daemon-helper.c | 4 ++-- 1 file 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 21a71e3c4..a101bf9b4 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 #include #include @@ -10,8 +12,6 @@ #include #endif -#include "libnm-std-aux/nm-std-aux.h" - enum { RETURN_SUCCESS = 0, RETURN_INVALID_CMD = 1,