Fix placement of #include "config.h"

This commit is contained in:
Guus Sliepen 2002-09-10 22:13:01 +00:00
parent dd888ca685
commit eaf1208e9d
5 changed files with 8 additions and 11 deletions

View file

@ -18,12 +18,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include "config.h"
#include <sys/types.h> #include <sys/types.h>
#include <ctype.h> #include <ctype.h>
#include <string.h> #include <string.h>
#include "config.h"
#include <utils.h> #include <utils.h>
#include <syslog.h> #include <syslog.h>
#include <xalloc.h> #include <xalloc.h>

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: connection.c,v 1.1.2.34 2002/09/09 22:32:30 guus Exp $ $Id: connection.c,v 1.1.2.35 2002/09/10 22:12:33 guus Exp $
*/ */
#include "config.h" #include "config.h"
@ -32,7 +32,6 @@
#include "net.h" /* Don't ask. */ #include "net.h" /* Don't ask. */
#include "netutl.h" #include "netutl.h"
#include "config.h"
#include "conf.h" #include "conf.h"
#include <utils.h> #include <utils.h>
#include "subnet.h" #include "subnet.h"

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: edge.c,v 1.1.2.17 2002/09/09 22:32:30 guus Exp $ $Id: edge.c,v 1.1.2.18 2002/09/10 22:12:33 guus Exp $
*/ */
#include "config.h" #include "config.h"
@ -31,7 +31,6 @@
#include "net.h" /* Don't ask. */ #include "net.h" /* Don't ask. */
#include "netutl.h" #include "netutl.h"
#include "config.h"
#include "conf.h" #include "conf.h"
#include <utils.h> #include <utils.h>
#include "subnet.h" #include "subnet.h"

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: graph.c,v 1.1.2.20 2002/09/10 09:40:21 guus Exp $ $Id: graph.c,v 1.1.2.21 2002/09/10 22:12:33 guus Exp $
*/ */
/* We need to generate two trees from the graph: /* We need to generate two trees from the graph:
@ -48,7 +48,6 @@
#include <stdio.h> #include <stdio.h>
#include <syslog.h> #include <syslog.h>
#include "config.h"
#include <string.h> #include <string.h>
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>

View file

@ -17,12 +17,14 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: net.h,v 1.9.4.53 2002/09/09 21:24:36 guus Exp $ $Id: net.h,v 1.9.4.54 2002/09/10 22:12:33 guus Exp $
*/ */
#ifndef __TINC_NET_H__ #ifndef __TINC_NET_H__
#define __TINC_NET_H__ #define __TINC_NET_H__
#include "config.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
@ -32,8 +34,6 @@
#include <inttypes.h> #include <inttypes.h>
#endif #endif
#include "config.h"
#ifdef ENABLE_JUMBOGRAMS #ifdef ENABLE_JUMBOGRAMS
#define MTU 9014 /* 9000 bytes payload + 14 bytes ethernet header */ #define MTU 9014 /* 9000 bytes payload + 14 bytes ethernet header */
#define MAXSIZE 9100 /* MTU + header (seqno) and trailer (CBC padding and HMAC) */ #define MAXSIZE 9100 /* MTU + header (seqno) and trailer (CBC padding and HMAC) */