]> granicus.if.org Git - sudo/commitdiff
added <fcntl.h> for solaris & reorg'd the includes + minor prettying up
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 24 May 1994 16:02:23 +0000 (16:02 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 24 May 1994 16:02:23 +0000 (16:02 +0000)
/

visudo.c

index 6e1f251c4e4de2cfd188f69adce98598e986affa..55e76d6686044715950aceeb8476f87a5a2b1bf6 100644 (file)
--- a/visudo.c
+++ b/visudo.c
@@ -39,10 +39,6 @@ static char rcsid[] = "$Id$";
 
 #include "config.h"
 
-#include <sys/types.h>
-#include <sys/param.h>
-#include <sys/stat.h>
-#include <sys/file.h>
 #include <stdio.h>
 #ifdef STDC_HEADERS
 #include <stdlib.h>
@@ -52,6 +48,11 @@ static char rcsid[] = "$Id$";
 #endif /* HAVE_UNISTD_H */
 #include <errno.h>
 #include <signal.h>
+#include <fcntl.h>
+#include <sys/types.h>
+#include <sys/param.h>
+#include <sys/stat.h>
+#include <sys/file.h>
 
 #include "sudo.h"
 
@@ -62,11 +63,16 @@ extern char *getenv();
 extern FILE *yyin, *yyout;
 extern int errno, yylineno;
 
+/*
+ * Globals
+ */
 char buffer[BUFSIZ];
 char *sudoers = _PATH_SUDO_SUDOERS;
-int status = 0, err_line_no = 0;
 char *sudoers_tmp_file = _PATH_SUDO_STMP;
-FILE *sudoers_tmp_fp=NULL, *sudoers_fp=NULL;
+int  status = 0,
+     err_line_no = 0;
+FILE *sudoers_tmp_fp=NULL,
+     *sudoers_fp=NULL;
 
 RETSIGTYPE Exit()
 {