Use #include <foo.h> instead of #include "foo.h" in most cases.
We rely on the include path to find many of these headers. It especially doesn't make sense to use #include "foo.h" for headers in the top-level include directory.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
#include "pathnames.h"
|
||||
#include <pathnames.h>
|
||||
|
||||
static int
|
||||
_sudo_printf_default(int msg_type, const char * restrict fmt, ...)
|
||||
|
@@ -26,8 +26,8 @@
|
||||
#undef SIZEOF_TIME_T
|
||||
|
||||
#include <config.h>
|
||||
#include "sudo_compat.h"
|
||||
#include "sudo_plugin.h"
|
||||
#include <sudo_compat.h>
|
||||
#include <sudo_plugin.h>
|
||||
|
||||
#include "pyhelpers_cpychecker.h"
|
||||
|
||||
|
@@ -24,8 +24,8 @@
|
||||
#include "python_plugin_common.h"
|
||||
#include "sudo_python_module.h"
|
||||
|
||||
#include "sudo_queue.h"
|
||||
#include "sudo_conf.h"
|
||||
#include <sudo_queue.h>
|
||||
#include <sudo_conf.h>
|
||||
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include "testhelpers.h"
|
||||
#include <unistd.h>
|
||||
|
||||
#include "sudo_dso.h"
|
||||
#include <sudo_dso.h>
|
||||
|
||||
#define DECL_PLUGIN(type, variable_name) \
|
||||
static struct type *variable_name = NULL; \
|
||||
|
@@ -26,14 +26,14 @@
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
# include <stdbool.h>
|
||||
#else
|
||||
# include "compat/stdbool.h"
|
||||
# include <compat/stdbool.h>
|
||||
#endif /* HAVE_STDBOOL_H */
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include <signal.h>
|
||||
#include <pwd.h>
|
||||
|
||||
#include "sudo_compat.h"
|
||||
#include <sudo_compat.h>
|
||||
|
||||
#define MAX_OUTPUT (2 << 16)
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "../pyhelpers.h"
|
||||
|
||||
#include "sudo_conf.h"
|
||||
#include <sudo_conf.h>
|
||||
|
||||
// just for the IDE
|
||||
#ifndef SRC_DIR
|
||||
|
@@ -27,12 +27,12 @@
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "sudo_gettext.h"
|
||||
#include "sudo_compat.h"
|
||||
#include <sudo_gettext.h>
|
||||
#include <sudo_compat.h>
|
||||
#include "sudo_python_debug.h"
|
||||
#include "sudo_queue.h"
|
||||
#include "sudo_conf.h"
|
||||
#include "sudo_fatal.h"
|
||||
#include <sudo_queue.h>
|
||||
#include <sudo_conf.h>
|
||||
#include <sudo_fatal.h>
|
||||
|
||||
|
||||
static int python_debug_instance = SUDO_DEBUG_INSTANCE_INITIALIZER;
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#ifndef SUDO_PYTHON_DEBUG_H
|
||||
#define SUDO_PYTHON_DEBUG_H
|
||||
|
||||
#include "sudo_debug.h"
|
||||
#include <sudo_debug.h>
|
||||
|
||||
/*
|
||||
* Sudo python plugin debug subsystems.
|
||||
|
Reference in New Issue
Block a user