make arg.h work as usual - iomenu - interactive terminal-based selection menu HTML git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 49b2a2f664d47cd98352daf4068933ae56633cf7 DIR parent ab7bc829f2023b41b1edcf1926aa6a973169de41 HTML Author: Josuah Demangeon <mail@josuah.net> Date: Sun, 15 Apr 2018 11:32:40 +0200 make arg.h work as usual Diffstat: M arg.h | 2 +- M iomenu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/arg.h b/arg.h @@ -3,7 +3,7 @@ extern char *argv0; -#define ARGBEGIN(argc, argv) \ +#define ARGBEGIN \ for (argv0 = *argv, argv++, argc--; \ argv[0] != NULL && argv[0][0] == '-' && argv[0][1] != '\0'; \ argc--, argv++) { \ DIR diff --git a/iomenu.c b/iomenu.c @@ -436,7 +436,7 @@ main(int argc, char *argv[]) { int exit_code; - ARGBEGIN(argc, argv) { + ARGBEGIN { case '#': hsflag = 1; break;