summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-access-point.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-03-09 13:02:20 +0100
committerThomas Haller <thaller@redhat.com>2017-03-09 14:12:35 +0100
commit831286df3001e6b76b7baeb10a7723841ab8b35e (patch)
treeb042134ef04427c961379f298512e4200c620901 /libnm-glib/nm-access-point.c
parentafd1bde36683fd73516f267dd98160c1b54f4ad7 (diff)
downloadNetworkManager-831286df3001e6b76b7baeb10a7723841ab8b35e.tar.gz
include: use double-quotes to include our own headers
In practice, this should only matter when there are multiple header files with the same name. That is something we try to avoid already, by giving headers a distinct name. When building NetworkManager itself, we clearly want to use double-quotes for including our own headers. But we also want to do that in our public headers. For example: ./a.c #include <stdio.h> #include <nm-1.h> void main() { printf ("INCLUDED %s/nm-2.h\n", SYMB); } ./1/nm-1.h #include <nm-2.h> ./1/nm-2.h #define SYMB "1" ./2/nm-2.h #define SYMB "2" $ cc -I./2 -I./1 ./a.c $ ./a.out INCLUDED 2/nm-2.h Exceptions to this are - headers in "shared/nm-utils" that include <NetworkManager.h>. These headers are copied into projects and hence used like headers owned by those projects. - examples/C
Diffstat (limited to 'libnm-glib/nm-access-point.c')
-rw-r--r--libnm-glib/nm-access-point.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libnm-glib/nm-access-point.c b/libnm-glib/nm-access-point.c
index 0aef3ee400..892b4a8309 100644
--- a/libnm-glib/nm-access-point.c
+++ b/libnm-glib/nm-access-point.c
@@ -24,11 +24,11 @@
#include <string.h>
#include <netinet/ether.h>
-#include <nm-connection.h>
-#include <nm-setting-connection.h>
-#include <nm-setting-wireless.h>
-#include <nm-setting-wireless-security.h>
-#include <nm-utils.h>
+#include "nm-connection.h"
+#include "nm-setting-connection.h"
+#include "nm-setting-wireless.h"
+#include "nm-setting-wireless-security.h"
+#include "nm-utils.h"
#include "nm-access-point.h"
#include "NetworkManager.h"