Fix char **argv to char *argv[]

This commit is contained in:
sin 2014-04-18 11:51:18 +01:00
parent 4e13ff39c3
commit 02d91696b4
11 changed files with 11 additions and 17 deletions

View File

@ -32,7 +32,7 @@ chgrp(const char *path)
} }
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
struct group *gr; struct group *gr;
@ -67,4 +67,3 @@ main(int argc, char **argv)
return failures; return failures;
} }

View File

@ -7,7 +7,7 @@
static void usage(void); static void usage(void);
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
char *shell[] = { "/bin/sh", "-i", NULL }, *aux, *p; char *shell[] = { "/bin/sh", "-i", NULL }, *aux, *p;
int savederrno; int savederrno;

2
env.c
View File

@ -11,7 +11,7 @@ extern char **environ;
static void usage(void); static void usage(void);
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
ARGBEGIN { ARGBEGIN {
case 'i': case 'i':

2
nice.c
View File

@ -11,7 +11,7 @@
static void usage(void); static void usage(void);
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
long val = 10; long val = 10;
int savederrno; int savederrno;

View File

@ -12,7 +12,7 @@ usage(void)
} }
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
char *var; char *var;
@ -34,4 +34,3 @@ main(int argc, char **argv)
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

View File

@ -14,7 +14,7 @@ static bool renice(int, int, long);
static void usage(void); static void usage(void);
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
const char *adj = NULL; const char *adj = NULL;
long val; long val;

View File

@ -13,7 +13,7 @@ usage(void)
} }
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
argv++;; argv++;;
if(!*argv) if(!*argv)
@ -27,4 +27,3 @@ main(int argc, char **argv)
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

View File

@ -14,7 +14,7 @@ static void usage(void);
static int base = 26, start = 'a'; static int base = 26, start = 'a';
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
int plen, slen = 2; int plen, slen = 2;
int ch; int ch;

3
sync.c
View File

@ -11,7 +11,7 @@ usage(void)
} }
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
if(argc != 1) if(argc != 1)
usage(); usage();
@ -19,4 +19,3 @@ main(int argc, char **argv)
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

View File

@ -10,7 +10,7 @@ usage(void)
} }
int int
main(int argc, char **argv) main(int argc, char *argv[])
{ {
if(argc != 2) if(argc != 2)
usage(); usage();
@ -20,4 +20,3 @@ main(int argc, char **argv)
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

View File

@ -9,7 +9,7 @@
#include "../util.h" #include "../util.h"
void void
enmasse(int argc, char **argv, int (*fn)(const char *, const char *)) enmasse(int argc, char *argv[], int (*fn)(const char *, const char *))
{ {
char *buf, *dir; char *buf, *dir;
int i; int i;
@ -34,4 +34,3 @@ enmasse(int argc, char **argv, int (*fn)(const char *, const char *))
} }
free(buf); free(buf);
} }