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
main(int argc, char **argv)
main(int argc, char *argv[])
{
struct group *gr;
@ -67,4 +67,3 @@ main(int argc, char **argv)
return failures;
}

View File

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

2
env.c
View File

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

2
nice.c
View File

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

View File

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

View File

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

View File

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

View File

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

3
sync.c
View File

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

View File

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

View File

@ -9,7 +9,7 @@
#include "../util.h"
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;
int i;
@ -34,4 +34,3 @@ enmasse(int argc, char **argv, int (*fn)(const char *, const char *))
}
free(buf);
}