sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 02d91696b4bb162325ea3e313cc6f0d0f126951a
parent 4e13ff39c341fe7c7fcc0190739a142aff9f9c37
Author: sin <sin@2f30.org>
Date:   Fri, 18 Apr 2014 11:51:18 +0100

Fix char **argv to char *argv[]

Diffstat:
Mchgrp.c | 3+--
Mchroot.c | 2+-
Menv.c | 2+-
Mnice.c | 2+-
Mprintenv.c | 3+--
Mrenice.c | 2+-
Mrmdir.c | 3+--
Msplit.c | 2+-
Msync.c | 3+--
Munlink.c | 3+--
Mutil/enmasse.c | 3+--
11 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/chgrp.c b/chgrp.c @@ -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; } - diff --git a/chroot.c b/chroot.c @@ -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 @@ -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 @@ -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 @@ -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; } - diff --git a/renice.c b/renice.c @@ -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 @@ -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; } - diff --git a/split.c b/split.c @@ -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 @@ -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; } - diff --git a/unlink.c b/unlink.c @@ -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; } - diff --git a/util/enmasse.c b/util/enmasse.c @@ -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); } -