cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 347b7d0aaaf790df992340525cae076d35d3f27e
parent d5e382dd04848349ebf115ac779149af5590ed35
Author: Michael Forney <mforney@mforney.org>
Date:   Sat,  6 Jul 2019 15:30:26 -0700

Minor tweaks to arg.h

Make sure EARGF() has type `char *` (rather than `void *`).

Only advance opt_ when there is more left in the argument.

Diffstat:
Marg.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arg.h b/arg.h @@ -15,4 +15,4 @@ } #define EARGF(x) \ - (done_ = 1, *++opt_ ? opt_ : argv[1] ? --argc, *++argv : ((x), abort(), (void *)0)) + (done_ = 1, opt_[1] ? ++opt_ : argv[1] ? --argc, *++argv : ((x), abort(), (char *)0))