Commit 3bfb163a authored by Dan Winship's avatar Dan Winship

all: consistently include config.h

config.h should be included from every .c file, and it should be
included before any other include. Fix that.

(As a side effect of how I did this, this also changes us to
consistently use "config.h" rather than <config.h>. To the extent that
it matters [which is not much], quotes are more correct anyway, since
we're talking about a file in our own build tree, not a system
include.)
parent 125f7c4d
......@@ -18,6 +18,8 @@
* Copyright 2008, 2014 Red Hat, Inc.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
......
......@@ -18,7 +18,8 @@
* Copyright (C) 2008 - 2011 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <glib-object.h>
......
......@@ -18,6 +18,8 @@
* Copyright (C) 2008 - 2012 Red Hat, Inc.
*/
#include "config.h"
#include <syslog.h>
#include <stdio.h>
#include <unistd.h>
......
......@@ -18,7 +18,8 @@
*
*/
#include <config.h>
#include "config.h"
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -31,7 +31,7 @@
* Robert Love <rml@novell.com>
*/
#include <config.h>
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
......
......@@ -28,6 +28,8 @@
* FIXME.
*/
#include "config.h"
#include <string.h>
#include <glib.h>
#include <gmodule.h>
......
......@@ -27,6 +27,8 @@
* gcc -Wall `pkg-config --cflags libnm` `pkg-config --cflags --libs gio-2.0` -luuid add-connection-gdbus.c -o add-connection-gdbus
*/
#include "config.h"
#include <gio/gio.h>
#include <uuid/uuid.h>
#include <NetworkManager.h>
......
......@@ -27,6 +27,8 @@
* gcc -Wall `pkg-config --libs --cflags glib-2.0 libnm` add-connection-libnm.c -o add-connection-libnm
*/
#include "config.h"
#include <glib.h>
#include <NetworkManager.h>
......
......@@ -26,6 +26,8 @@
* gcc -Wall `pkg-config --cflags libnm` `pkg-config --cflags --libs gio-2.0` get-active-connections-gdbus.c -o get-active-connections-gdbus
*/
#include "config.h"
#include <string.h>
#include <gio/gio.h>
#include <NetworkManager.h>
......
......@@ -25,6 +25,8 @@
* gcc -Wall `pkg-config --libs --cflags glib-2.0 libnm` get-ap-info-libnm.c -o get-ap-info-libnm
*/
#include "config.h"
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
......
......@@ -27,6 +27,8 @@
* gcc -Wall `pkg-config --cflags libnm` `pkg-config --cflags --libs gio-2.0` list-connections-gdbus.c -o list-connections-gdbus
*/
#include "config.h"
#include <gio/gio.h>
#include <NetworkManager.h>
......
......@@ -26,6 +26,8 @@
* gcc -Wall `pkg-config --libs --cflags glib-2.0 libnm` list-connections-libnm.c -o list-connections-libnm
*/
#include "config.h"
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
......
......@@ -28,6 +28,8 @@
* gcc -Wall `pkg-config --libs --cflags glib-2.0 gio-2.0` monitor-nm-running-gdbus.c -o monitor-nm-running-gdbus
*/
#include "config.h"
#include <gio/gio.h>
static void
......
......@@ -29,6 +29,8 @@
* gcc -Wall `pkg-config --libs --cflags glib-2.0 gio-2.0` `pkg-config --cflags libnm` monitor-nm-state-gdbus.c -o monitor-nm-state-gdbus
*/
#include "config.h"
#include <gio/gio.h>
#include <string.h>
#include <nm-dbus-interface.h>
......
......@@ -22,6 +22,7 @@
*/
#include "config.h"
#include <glib.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <glib-object.h>
#include <glib/gi18n.h>
#include <string.h>
......
......@@ -18,6 +18,8 @@
* Copyright 2004 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <gio/gio.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include "nm-property-compare.h"
#include "nm-glib-compat.h"
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <errno.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2012 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2007 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <stdlib.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <arpa/inet.h>
#include <glib/gi18n.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2014 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2007 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2009 One Laptop per Child
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <glib/gi18n.h>
#include "nm-setting-ppp.h"
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include "nm-setting-serial.h"
......
......@@ -18,6 +18,8 @@
* Copyright 2013 Jiri Pirko <jiri@resnulli.us>
*/
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
......
......@@ -18,6 +18,8 @@
* Copyright 2013 Jiri Pirko <jiri@resnulli.us>
*/
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <glib/gi18n.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2011 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <errno.h>
#include <stdlib.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2009 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>
......
......@@ -20,7 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>
......
......@@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
......
......@@ -19,6 +19,8 @@
* Copyright 2007 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include "nm-simple-connection.h"
#include "nm-setting-private.h"
......
......@@ -19,6 +19,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <arpa/inet.h>
#include <netinet/in.h>
......
......@@ -21,6 +21,8 @@
* Copyright 2007 - 2011 Red Hat, Inc.
*/
#include "config.h"
#include <glib.h>
#include <unistd.h>
#include <stdlib.h>
......
......@@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>
......
......@@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>
......
......@@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>
......
......@@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>
#include <nm-utils.h>
......
......@@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>
......
......@@ -20,6 +20,8 @@
* Copyright (C) 2007 - 2008 Red Hat, Inc.
*/
#include "config.h"
#include <stdlib.h>
#include <signal.h>
#include <string.h>
......
......@@ -21,6 +21,8 @@
* Copyright (C) 2005 - 2008 Novell, Inc.
*/
#include "config.h"