[hackers] [sbase] Fix char **argv to char *argv[] || sin

From: <git_AT_suckless.org>
Date: Fri, 18 Apr 2014 12:54:48 +0200

commit 02d91696b4bb162325ea3e313cc6f0d0f126951a
Author: sin <sin_AT_2f30.org>
Date: Fri Apr 18 11:51:18 2014 +0100

    Fix char **argv to char *argv[]

diff --git a/chgrp.c b/chgrp.c
index 5658f21..c237474 100644
--- a/chgrp.c
+++ b/chgrp.c
_AT_@ -32,7 +32,7 @@ chgrp(const char *path)
 }
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv[])
 {
         struct group *gr;
 
_AT_@ -67,4 +67,3 @@ main(int argc, char **argv)
 
         return failures;
 }
-
diff --git a/chroot.c b/chroot.c
index 9569ad8..0cef1db 100644
--- a/chroot.c
+++ b/chroot.c
_AT_@ -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;
diff --git a/env.c b/env.c
index aca9681..e4d050c 100644
--- a/env.c
+++ b/env.c
_AT_@ -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':
diff --git a/nice.c b/nice.c
index f58a23b..c09bc82 100644
--- a/nice.c
+++ b/nice.c
_AT_@ -11,7 +11,7 @@
 static void usage(void);
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv[])
 {
         long val = 10;
         int savederrno;
diff --git a/printenv.c b/printenv.c
index b839983..085f3ea 100644
--- a/printenv.c
+++ b/printenv.c
_AT_@ -12,7 +12,7 @@ usage(void)
 }
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv[])
 {
         char *var;
 
_AT_@ -34,4 +34,3 @@ main(int argc, char **argv)
 
         return EXIT_SUCCESS;
 }
-
diff --git a/renice.c b/renice.c
index f3eca5b..e7908e3 100644
--- a/renice.c
+++ b/renice.c
_AT_@ -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;
diff --git a/rmdir.c b/rmdir.c
index 49482b2..5fdaadc 100644
--- a/rmdir.c
+++ b/rmdir.c
_AT_@ -13,7 +13,7 @@ usage(void)
 }
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv[])
 {
         argv++;;
         if(!*argv)
_AT_@ -27,4 +27,3 @@ main(int argc, char **argv)
 
         return EXIT_SUCCESS;
 }
-
diff --git a/split.c b/split.c
index 8c04ee9..07370d9 100644
--- a/split.c
+++ b/split.c
_AT_@ -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;
diff --git a/sync.c b/sync.c
index 76d3e07..a158041 100644
--- a/sync.c
+++ b/sync.c
_AT_@ -11,7 +11,7 @@ usage(void)
 }
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv[])
 {
         if(argc != 1)
                 usage();
_AT_@ -19,4 +19,3 @@ main(int argc, char **argv)
 
         return EXIT_SUCCESS;
 }
-
diff --git a/unlink.c b/unlink.c
index d966a16..5b74d90 100644
--- a/unlink.c
+++ b/unlink.c
_AT_@ -10,7 +10,7 @@ usage(void)
 }
 
 int
-main(int argc, char **argv)
+main(int argc, char *argv[])
 {
         if(argc != 2)
                 usage();
_AT_@ -20,4 +20,3 @@ main(int argc, char **argv)
 
         return EXIT_SUCCESS;
 }
-
diff --git a/util/enmasse.c b/util/enmasse.c
index 48700e9..f0e977b 100644
--- a/util/enmasse.c
+++ b/util/enmasse.c
_AT_@ -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;
_AT_@ -34,4 +34,3 @@ enmasse(int argc, char **argv, int (*fn)(const char *, const char *))
         }
         free(buf);
 }
-
Received on Fri Apr 18 2014 - 12:54:48 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 18 2014 - 13:00:24 CEST