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:
@@ -36,7 +36,7 @@
|
||||
#endif /* HAVE_STRING_H */
|
||||
#include <limits.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
#ifndef LINE_MAX
|
||||
# define LINE_MAX 2048
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#endif /* STDC_HEADERS */
|
||||
#include <signal.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
#if !defined(NSIG)
|
||||
# if defined(_NSIG)
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
int
|
||||
nanosleep(const struct timespec *ts, struct timespec *rts)
|
||||
|
@@ -36,7 +36,7 @@
|
||||
# include <malloc.h>
|
||||
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
char *
|
||||
strdup(const char *src)
|
||||
|
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -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.
|
||||
|
@@ -51,7 +51,7 @@
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
|
||||
#define EPOCH 1970
|
||||
|
@@ -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"
|
||||
|
@@ -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;
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#endif /* STDC_HEADERS */
|
||||
#include <time.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
char *get_timestr(time_t, int);
|
||||
|
||||
|
@@ -40,7 +40,6 @@
|
||||
|
||||
#include <vas.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include "logging.h"
|
||||
#include "nonunix.h"
|
||||
#include "parse.h"
|
||||
|
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -28,7 +28,7 @@
|
||||
#endif /* STDC_HEADERS */
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
#include "logging.h"
|
||||
|
||||
#ifdef HAVE_BSM_AUDIT
|
||||
|
10
src/lbuf.c
10
src/lbuf.c
@@ -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 *),
|
||||
|
@@ -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 {
|
||||
|
@@ -27,7 +27,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
|
@@ -43,7 +43,7 @@
|
||||
# include <termio.h>
|
||||
#endif /* HAVE_TERMIOS_H */
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
#ifndef TCSASOFT
|
||||
# define TCSASOFT 0
|
||||
|
@@ -38,7 +38,7 @@
|
||||
# include <termio.h>
|
||||
#endif
|
||||
|
||||
#include "compat.h"
|
||||
#include <compat.h>
|
||||
|
||||
#if !defined(TIOCGSIZE) && defined(TIOCGWINSZ)
|
||||
# define TIOCGSIZE TIOCGWINSZ
|
||||
|
Reference in New Issue
Block a user