]> granicus.if.org Git - sudo/commitdiff
Make local includes consistent; use double quotes for local includes
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 5 Feb 2011 20:04:02 +0000 (15:04 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 5 Feb 2011 20:04:02 +0000 (15:04 -0500)
--HG--
branch : 1.7

25 files changed:
error.c
fileops.c
fnmatch.c
getcwd.c
getprogname.c
gettime.c
glob.c
isblank.c
memrchr.c
mksiglist.c
mkstemps.c
nanosleep.c
setsid.c
sigaction.c
snprintf.c
strcasecmp.c
strerror.c
strlcat.c
strlcpy.c
strsignal.c
sudo_noexec.c
sudoreplay.c
utimes.c
vasgroups.c
zero_bytes.c

diff --git a/error.c b/error.c
index 2bf864ba900048aee2b4e9423c3b8c7ce2dfb6c3..e5cb959713b76e149c3580d7a01faa3ae20fe450 100644 (file)
--- a/error.c
+++ b/error.c
@@ -23,7 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include <missing.h>
+#include "missing.h"
 #include "error.h"
 
 static void _warning   __P((int, const char *, va_list));
index 3a509396f9d345885c3debab72f2ae19cd6de215..ae9a7df135c6d48da8b0ebc0b96722f425f57466 100644 (file)
--- a/fileops.c
+++ b/fileops.c
@@ -44,7 +44,7 @@
 # include <time.h>
 #endif
 #ifndef HAVE_TIMESPEC
-# include <emul/timespec.h>
+# include "emul/timespec.h"
 #endif
 
 #include "sudo.h"
index a580cf667fbeda10497ca10bafd3c7587fc631d5..723e53d7d706b17402f46e1330e497d60cca55b1 100644 (file)
--- a/fnmatch.c
+++ b/fnmatch.c
@@ -49,7 +49,7 @@
 # include <strings.h>
 #endif /* HAVE_STRINGS_H */
 
-#include <missing.h>
+#include "missing.h"
 #include "emul/fnmatch.h"
 #include "emul/charclass.h"
 
index b2917c16ffeb3c487a2c699333534f481ca81d48..1260ad46f14678d5faf4ac31eec2471b2a2b3765 100644 (file)
--- a/getcwd.c
+++ b/getcwd.c
@@ -71,7 +71,7 @@
 # endif
 #endif
 
-#include <missing.h>
+#include "missing.h"
 
 #define        ISDOT(dp) \
        (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
index d923d9f75e24046e8ed31ed2f7c6f5e07fe0fe53..0790222d7ea7d7951460c97d6a69f763454346b1 100644 (file)
@@ -25,7 +25,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#include <missing.h>
+#include "missing.h"
 
 const char *
 getprogname()
index c605da3afbf2aa936e8dfb100c54906b0c52def5..6cb15d7843dcd9c7a6154cef9ac0392f7b694340 100644 (file)
--- a/gettime.c
+++ b/gettime.c
@@ -24,7 +24,7 @@
 # include <time.h>
 #endif
 
-#include <missing.h>
+#include "missing.h"
 
 /*
  * Get the current time via gettimeofday() for systems with
diff --git a/glob.c b/glob.c
index dba4464659900acf5bf5d995d81b681c197c2531..66dcadcb74e93675707b0ac2c4c6f96ec0a8dcdc 100644 (file)
--- a/glob.c
+++ b/glob.c
@@ -95,7 +95,7 @@
 #include <limits.h>
 #include <pwd.h>
 
-#include <missing.h>
+#include "missing.h"
 #include "emul/glob.h"
 #include "emul/charclass.h"
 
index a12547c73c3b39e6ab00bbf3aedbb6b54482beeb..a7f01e2a61a972d2b81b8f0cac0d260b0a0f1d67 100644 (file)
--- a/isblank.c
+++ b/isblank.c
  */
 
 #include <config.h>
+
 #include <sys/types.h>
-#include <missing.h>
+
+#include "missing.h"
 
 #undef isblank
 int
index 0271333e35c25f5890d4f672946b8256dc0f98ee..425fcb47d04b2b1d8d7eeae10dd1c16f0985be7e 100644 (file)
--- a/memrchr.c
+++ b/memrchr.c
@@ -18,7 +18,7 @@
 
 #include <sys/types.h>
 
-#include <missing.h>
+#include "missing.h"
 
 /*
  * Reverse memchr()
index 5e5d3274581a73f27a3eb057b135d156238b7cb6..055dd1c2f14f8714b18f48e5876e7981bafe391e 100644 (file)
@@ -30,7 +30,7 @@
 #endif /* STDC_HEADERS */
 #include <signal.h>
 
-#include <missing.h>
+#include "missing.h"
 
 int
 main(argc, argv)
@@ -44,7 +44,7 @@ main(argc, argv)
 
     printf("#include <config.h>\n");
     printf("#include <signal.h>\n");
-    printf("#include <missing.h>\n\n");
+    printf("#include "missing.h"\n\n");
     printf("const char *const my_sys_siglist[NSIG] = {\n");
     for (i = 0; i < NSIG; i++) {
        if (my_sys_siglist[i] != NULL) {
index d72de98a9f021a25e3e33d02ddf8469a52ebd2b8..b3b688d7baf88cf2df9f75129a0348cbb4be91cb 100644 (file)
@@ -15,7 +15,7 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "config.h"
+#include <config.h>
 
 #include <sys/types.h>
 #include <sys/time.h>
index 921b34d19ec4e4cfa177aad80cda3e2cff0923ec..1849eb2cd9b633c0d6e96c1d9b2dd91286870196 100644 (file)
@@ -25,7 +25,7 @@
 # include <time.h>
 #endif
 #ifndef HAVE_TIMESPEC
-# include <emul/timespec.h>
+# include "emul/timespec.h"
 #endif
 #include <errno.h>
 
index 80c620c9ca8e620f202601d64ccc36d62a76e190..79271c86583af33f87f00ea58eb8747e9545b009 100644 (file)
--- a/setsid.c
+++ b/setsid.c
@@ -26,7 +26,7 @@
 #endif /* HAVE_UNISTD_H */
 
 #include <pathnames.h>
-#include <missing.h>
+#include "missing.h"
 
 pid_t
 setsid()
index 8a09ca6552bca51aa2f2d5116f47f773e50af14b..9285ddac61be7262c8a3dc5d6e13b8f52871599e 100644 (file)
 #include <config.h>
 
 #include <sys/types.h>
+
 #include <signal.h>
 #include <errno.h>
 
-#include <missing.h>
+#include "missing.h"
 
 int
 sigaction(signo, sa, osa)
index a1a3322fc79ed23eba2474f9e076c18e863dc158..0fc62dcb65fe98015e7bcd26a1373dcf02ded1ee 100644 (file)
@@ -76,7 +76,7 @@
 # include <varargs.h>
 #endif
 
-#include <missing.h>
+#include "missing.h"
 
 static int xxxprintf    __P((char **, size_t, int, const char *, va_list));
 
index 2df6d60b4c73892a13daa8c75dbc780b847102a5..9ab451c1d63fbdedcb2151183ac0513e9e2f5f8c 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <sys/types.h>
 
-#include <missing.h>
+#include "missing.h"
 
 /*
  * Case insensitive string compare routines, same semantics as str[n]cmp()
index 7d5a8b71d8d1852be729645d8d530fdea92daae7..88b888bc463b670040e8c7076fd1618999034b17 100644 (file)
@@ -25,7 +25,7 @@
 #include <stdio.h>
 #include <errno.h>
 
-#include <missing.h>
+#include "missing.h"
 
 /*
  * Map errno -> error string.
index b987f1b7111759df4d3b652b39b84e8209f88740..77f6c8663b4089b5bc69b71ac30ea0eced1759a4 100644 (file)
--- a/strlcat.c
+++ b/strlcat.c
@@ -21,7 +21,7 @@
 #include <sys/types.h>
 #include <string.h>
 
-#include <missing.h>
+#include "missing.h"
 
 /*
  * Appends src to string dst of size siz (unlike strncat, siz is the
index 3ccc2a4673e5930db6cadfa207ab97cd0d913d15..df2e677418fadd7479426212d0d6adbdedf7d20e 100644 (file)
--- a/strlcpy.c
+++ b/strlcpy.c
@@ -20,7 +20,7 @@
 
 #include <sys/types.h>
 
-#include <missing.h>
+#include "missing.h"
 
 /*
  * Copy src to string dst of size siz.  At most siz-1 characters
index 35f216639d7a431a07fa744243489060ad81d7e3..a5514290dfa410b36e4c04d33e97c82eb6e20da4 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdio.h>
 #include <signal.h>
 
-#include <missing.h>
+#include "missing.h"
 
 #if defined(HAVE_DECL_SYS_SIGLIST) && HAVE_DECL_SYS_SIGLIST == 1
 # define my_sys_siglist        sys_siglist
index 647e653820b59dd5aa1730b7f2bd5453ae89ad82..ba180b5d0b8d63c94cc68fd733037ef26b70e08f 100644 (file)
@@ -28,7 +28,7 @@
 # include <varargs.h>
 #endif
 
-#include <missing.h>
+#include "missing.h"
 
 /*
  * Dummy versions of the execve() family of syscalls.  We don't need
index 8a627b5600826dd66661bdd5001721d1884c7a0d..968df800e5ae66504452af424a7a15faff52e4ff 100644 (file)
@@ -50,7 +50,7 @@
 # include <time.h>
 #endif
 #ifndef HAVE_TIMESPEC
-# include <emul/timespec.h>
+# include "emul/timespec.h"
 #endif
 #include <ctype.h>
 #include <errno.h>
index a39a1befd972cc4f44d34b8c57dcfc5ccda15c12..5ff4379c0f9fb682a11e70d7553026f7c7a257a3 100644 (file)
--- a/utimes.c
+++ b/utimes.c
 #ifdef HAVE_UTIME_H
 # include <utime.h>
 #else
-# include <emul/utime.h>
+# include "emul/utime.h"
 #endif
 
-#include <missing.h>
+#include "missing.h"
 
 #ifndef HAVE_UTIMES
 /*
index 867967bf8a083c1d74ae9b4d8907434fa64e3fce..0ba33e1b5bac16cf44ce4cdb8bcace473e13b863 100644 (file)
@@ -28,7 +28,7 @@
  * POSSIBILITY OF SUCH DAMAGE. 
  */
 
-#include "config.h"
+#include <config.h>
 
 #include <stdlib.h>
 #include <sys/types.h>
index b2de8756ca73483e8a6af0f8fa7953981ccae5db..bce089584236e60fcfdd3faa6b4f3686ad14f5f2 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <sys/types.h>
 
-#include <missing.h>
+#include "missing.h"
 
 /*
  * Like bzero(3) but with a volatile pointer.  The hope is that