]> granicus.if.org Git - sudo/commitdiff
Quiet -Wall
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 7 Apr 1999 06:59:59 +0000 (06:59 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 7 Apr 1999 06:59:59 +0000 (06:59 +0000)
testsudoers.c

index 18f881b492d55e02ae2b48e4fa5cb62d23252176..8a712225e2d2bf31519997911d7972451564597b 100644 (file)
@@ -55,7 +55,9 @@
 #include <grp.h>
 #include <sys/param.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <netinet/in.h>
+#include <arpa/inet.h>
 #include <netdb.h>
 #include <sys/stat.h>
 #include <dirent.h>
@@ -85,6 +87,28 @@ char **Argv, **NewArgv;
 int  Argc, NewArgc;
 uid_t uid;
 
+/*
+ * Prototypes for external functions
+ */
+void init_parser       __P((void));
+void dumpaliases       __P((void));
+
+/*
+ * Returns TRUE if "s" has shell meta characters in it,
+ * else returns FALSE.
+ */
+int has_meta(s)
+    char *s;
+{
+    register char *t;
+    
+    for (t = s; *t; t++) {
+       if (*t == '\\' || *t == '?' || *t == '*' || *t == '[' || *t == ']')
+           return(TRUE);
+    }
+    return(FALSE);
+}
+
 
 /*
  * return TRUE if cmnd matches, in the sudo sense,
@@ -341,20 +365,3 @@ int main(argc, argv)
 
     exit(0);
 }
-
-
-/*
- * Returns TRUE if "s" has shell meta characters in it,
- * else returns FALSE.
- */
-int has_meta(s)
-    char *s;
-{
-    register char *t;
-    
-    for (t = s; *t; t++) {
-       if (*t == '\\' || *t == '?' || *t == '*' || *t == '[' || *t == ']')
-           return(TRUE);
-    }
-    return(FALSE);
-}