Quiet -Wall

This commit is contained in:
Todd C. Miller
1999-04-07 06:59:59 +00:00
parent 91e31132dd
commit 3a8971f654

View File

@@ -55,7 +55,9 @@
#include <grp.h> #include <grp.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h> #include <netdb.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <dirent.h> #include <dirent.h>
@@ -85,6 +87,28 @@ char **Argv, **NewArgv;
int Argc, NewArgc; int Argc, NewArgc;
uid_t uid; 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, * return TRUE if cmnd matches, in the sudo sense,
@@ -341,20 +365,3 @@ int main(argc, argv)
exit(0); 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);
}