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.)
This commit is contained in:
Dan Winship 2014-11-13 10:07:02 -05:00
parent 125f7c4d40
commit 3bfb163a74
333 changed files with 639 additions and 96 deletions

View file

@ -18,6 +18,8 @@
* Copyright 2008, 2014 Red Hat, Inc.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>

View file

@ -18,7 +18,8 @@
* Copyright (C) 2008 - 2011 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <glib-object.h>

View file

@ -18,6 +18,8 @@
* Copyright (C) 2008 - 2012 Red Hat, Inc.
*/
#include "config.h"
#include <syslog.h>
#include <stdio.h>
#include <unistd.h>

View file

@ -18,7 +18,8 @@
*
*/
#include <config.h>
#include "config.h"
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>

View file

@ -31,7 +31,7 @@
* Robert Love <rml@novell.com>
*/
#include <config.h>
#include "config.h"
#include <stdio.h>
#include <stdlib.h>

View file

@ -28,6 +28,8 @@
* FIXME.
*/
#include "config.h"
#include <string.h>
#include <glib.h>
#include <gmodule.h>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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

View file

@ -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>

View file

@ -22,6 +22,7 @@
*/
#include "config.h"
#include <glib.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <glib-object.h>
#include <glib/gi18n.h>
#include <string.h>

View file

@ -18,6 +18,8 @@
* Copyright 2004 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <gio/gio.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include "nm-property-compare.h"
#include "nm-glib-compat.h"

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <errno.h>

View file

@ -19,6 +19,8 @@
* Copyright 2012 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

View file

@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <stdlib.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <arpa/inet.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2014 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2009 One Laptop per Child
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <glib/gi18n.h>
#include "nm-setting-ppp.h"

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include "nm-setting-serial.h"

View file

@ -18,6 +18,8 @@
* Copyright 2013 Jiri Pirko <jiri@resnulli.us>
*/
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

View file

@ -18,6 +18,8 @@
* Copyright 2013 Jiri Pirko <jiri@resnulli.us>
*/
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2011 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <errno.h>
#include <stdlib.h>

View file

@ -20,6 +20,8 @@
* Copyright 2009 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>

View file

@ -20,7 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>
#include <gio/gio.h>

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include "nm-simple-connection.h"
#include "nm-setting-private.h"

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <arpa/inet.h>
#include <netinet/in.h>

View file

@ -21,6 +21,8 @@
* Copyright 2007 - 2011 Red Hat, Inc.
*/
#include "config.h"
#include <glib.h>
#include <unistd.h>
#include <stdlib.h>

View file

@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>

View file

@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>

View file

@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>

View file

@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>
#include <nm-utils.h>

View file

@ -19,6 +19,8 @@
*
*/
#include "config.h"
#include <glib.h>
#include <string.h>

View file

@ -20,6 +20,8 @@
* Copyright (C) 2007 - 2008 Red Hat, Inc.
*/
#include "config.h"
#include <stdlib.h>
#include <signal.h>
#include <string.h>

View file

@ -21,6 +21,8 @@
* Copyright (C) 2005 - 2008 Novell, Inc.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -19,7 +19,8 @@
* Copyright 2007 - 2011 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -19,6 +19,8 @@
* Copyright 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include "NetworkManager.h"

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <dbus/dbus-glib.h>
#include <string.h>
#include <nm-utils.h>

View file

@ -18,8 +18,9 @@
* Copyright 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <config.h>
#include <gio/gio.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib-lowlevel.h>

View file

@ -19,6 +19,8 @@
* Copyright 2009 - 2011 Red Hat, Inc.
*/
#include "config.h"
#include "nm-device-adsl.h"
#include "nm-device-private.h"
#include "nm-object-private.h"

View file

@ -18,7 +18,8 @@
* Copyright 2012 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -18,7 +18,8 @@
* Copyright 2012 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -19,7 +19,8 @@
* Copyright 2007 - 2012 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -19,7 +19,8 @@
* Copyright 2007 - 2012 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -18,7 +18,7 @@
* Copyright 2013 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>

View file

@ -18,7 +18,8 @@
* Copyright 2011 - 2012 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <linux/if_infiniband.h>
#include <netinet/ether.h>

View file

@ -19,7 +19,8 @@
* Copyright 2008 Novell, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include "nm-glib-compat.h"

View file

@ -18,7 +18,8 @@
* Copyright 2012 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include "nm-glib-compat.h"

View file

@ -18,7 +18,8 @@
* Copyright 2013 Jiri Pirko <jiri@resnulli.us>
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -18,7 +18,8 @@
* Copyright 2012 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -19,7 +19,8 @@
* Copyright 2007 - 2012 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -19,7 +19,8 @@
* Copyright 2009 Novell, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <netinet/ether.h>

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2012 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include "nm-dhcp4-config.h"

View file

@ -19,6 +19,8 @@
* Copyright 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include "nm-dhcp6-config.h"

View file

@ -19,6 +19,8 @@
* Copyright 2008 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <nm-setting-ip4-config.h>

View file

@ -19,6 +19,8 @@
* Copyright 2008 - 2014 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <nm-setting-ip6-config.h>

View file

@ -18,6 +18,8 @@
* Copyright 2008 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib.h>
#include "nm-object-cache.h"

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2012 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <gio/gio.h>
#include <stdlib.h>

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2011 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <gio/gio.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2009 - 2012 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <NetworkManager.h>
#include <nm-connection.h>

View file

@ -18,7 +18,8 @@
* Copyright 2010 - 2011 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include <dbus/dbus-glib-lowlevel.h>

View file

@ -18,6 +18,8 @@
* Copyright 2008 Red Hat, Inc.
*/
#include "config.h"
#include <glib.h>
#include <dbus/dbus-glib.h>
#include <string.h>

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2012 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include "nm-vpn-connection.h"
#include "NetworkManager.h"

View file

@ -19,6 +19,8 @@
* Copyright 2008 Novell, Inc.
*/
#include "config.h"
#include "nm-vpn-plugin-ui-interface.h"
static void

View file

@ -18,6 +18,8 @@
* Copyright 2011 Red Hat, Inc.
*/
#include "config.h"
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>

View file

@ -19,6 +19,8 @@
* Copyright 2007 - 2008 Red Hat, Inc.
*/
#include "config.h"
#include <signal.h>
#include "nm-glib-compat.h"
#include "nm-vpn-plugin.h"

View file

@ -18,7 +18,8 @@
* Copyright 2011 Red Hat, Inc.
*/
#include <config.h>
#include "config.h"
#include <string.h>
#include "nm-glib-compat.h"

View file

@ -18,6 +18,8 @@
*
*/
#include "config.h"
#include <dbus/dbus.h>
#include <glib.h>
#include <string.h>

View file

@ -18,6 +18,8 @@
*
*/
#include "config.h"
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>

View file

@ -18,6 +18,8 @@
*
*/
#include "config.h"
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
#include <dbus/dbus-glib-lowlevel.h>

View file

@ -22,6 +22,7 @@
*/
#include "config.h"
#include <glib.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <glib-object.h>
#include <glib/gi18n.h>
#include <dbus/dbus-glib.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include "nm-param-spec-specialized.h"
#include "nm-glib-compat.h"

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <dbus/dbus-glib.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <glib/gi18n.h>

View file

@ -20,6 +20,8 @@
* Copyright 2007 - 2008 Novell, Inc.
*/
#include "config.h"
#include <string.h>
#include <net/ethernet.h>
#include <glib/gi18n.h>

View file

@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <errno.h>

View file

@ -19,6 +19,8 @@
* Copyright 2012 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

View file

@ -19,6 +19,8 @@
* Copyright 2011 - 2013 Red Hat, Inc.
*/
#include "config.h"
#include <string.h>
#include <ctype.h>
#include <stdlib.h>

Some files were not shown because too many files have changed in this diff Show more