Use angle brackets when including headers that can only be found when

an -I flag is specified.  The files in the compat dir could get away
with double quotes here but I've converted all the source files
to use angle brackets for consistency.
This commit is contained in:
Todd C. Miller
2010-04-30 15:13:47 -04:00
parent 1438664047
commit d346e50903
20 changed files with 34 additions and 35 deletions

View File

@@ -36,7 +36,7 @@
#endif /* HAVE_STRING_H */
#include <limits.h>
#include "compat.h"
#include <compat.h>
#ifndef LINE_MAX
# define LINE_MAX 2048

View File

@@ -28,7 +28,7 @@
#endif /* STDC_HEADERS */
#include <signal.h>
#include "compat.h"
#include <compat.h>
#if !defined(NSIG)
# if defined(_NSIG)

View File

@@ -29,7 +29,7 @@
#endif
#include <errno.h>
#include "compat.h"
#include <compat.h>
int
nanosleep(const struct timespec *ts, struct timespec *rts)

View File

@@ -36,7 +36,7 @@
# include <malloc.h>
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
#include "compat.h"
#include <compat.h>
char *
strdup(const char *src)

View File

@@ -36,7 +36,7 @@
# include <malloc.h>
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
#include "compat.h"
#include <compat.h>
char *
strndup(const char *src, size_t maxlen)

View File

@@ -49,8 +49,8 @@
#include <stdarg.h>
#include <sudo_plugin.h>
#include "compat.h"
#include "missing.h"
#include <compat.h>
#include <missing.h>
/*
* Sample plugin module that allows any user who knows the password

View File

@@ -41,8 +41,8 @@
# include <sys/sysctl.h>
#endif
#include "compat.h"
#include "missing.h"
#include <compat.h>
#include <missing.h>
/*
* Fill in a struct timeval with the time the system booted.

View File

@@ -51,7 +51,7 @@
#endif
#include <ctype.h>
#include "compat.h"
#include <compat.h>
#define EPOCH 1970

View File

@@ -84,10 +84,10 @@
#include <gram.h>
#ifndef HAVE_FNMATCH
# include "compat/fnmatch.h"
# include <compat/fnmatch.h>
#endif /* HAVE_FNMATCH */
#ifndef HAVE_EXTENDED_GLOB
# include "compat/glob.h"
# include <compat/glob.h>
#endif /* HAVE_EXTENDED_GLOB */
#ifdef USING_NONUNIX_GROUPS
# include "nonunix.h"

View File

@@ -83,10 +83,10 @@
#include <pathnames.h>
#include "compat.h"
#include "alloc.h"
#include "error.h"
#include "missing.h"
#include <compat.h>
#include <alloc.h>
#include <error.h>
#include <missing.h>
/* For getopt(3) */
extern char *optarg;

View File

@@ -28,7 +28,7 @@
#endif /* STDC_HEADERS */
#include <time.h>
#include "compat.h"
#include <compat.h>
char *get_timestr(time_t, int);

View File

@@ -40,7 +40,6 @@
#include <vas.h>
#include "compat.h"
#include "logging.h"
#include "nonunix.h"
#include "parse.h"

View File

@@ -46,9 +46,9 @@
# include <inttypes.h>
#endif
#include "compat.h"
#include "alloc.h"
#include "error.h"
#include <compat.h>
#include <alloc.h>
#include <error.h>
/*
* If there is no SIZE_MAX or SIZE_T_MAX we have to assume that size_t

View File

@@ -39,8 +39,8 @@
# endif
#endif /* HAVE_STRING_H */
#include "compat.h"
#include "missing.h"
#include <compat.h>
#include <missing.h>
int
atobool(const char *str)

View File

@@ -28,7 +28,7 @@
#endif /* STDC_HEADERS */
#include <stdarg.h>
#include "compat.h"
#include <compat.h>
#include "logging.h"
#ifdef HAVE_BSM_AUDIT

View File

@@ -47,11 +47,11 @@
# include <termio.h>
#endif
#include "compat.h"
#include "alloc.h"
#include "error.h"
#include "missing.h"
#include "lbuf.h"
#include <compat.h>
#include <alloc.h>
#include <error.h>
#include <missing.h>
#include <lbuf.h>
void
lbuf_init(struct lbuf *lbuf, int (*output)(const char *),

View File

@@ -29,10 +29,10 @@
# endif
#endif /* STDC_HEADERS */
#include "compat.h"
#include "list.h"
#include <compat.h>
#include <list.h>
#ifdef DEBUG
# include "error.h"
# include <error.h>
#endif
struct list_proto {

View File

@@ -27,7 +27,7 @@
#include <string.h>
#include <unistd.h>
#include "compat.h"
#include <compat.h>
int
main (int argc, char *argv[])

View File

@@ -43,7 +43,7 @@
# include <termio.h>
#endif /* HAVE_TERMIOS_H */
#include "compat.h"
#include <compat.h>
#ifndef TCSASOFT
# define TCSASOFT 0

View File

@@ -38,7 +38,7 @@
# include <termio.h>
#endif
#include "compat.h"
#include <compat.h>
#if !defined(TIOCGSIZE) && defined(TIOCGWINSZ)
# define TIOCGSIZE TIOCGWINSZ