From 347b7d0aaaf790df992340525cae076d35d3f27e Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 6 Jul 2019 15:30:26 -0700 Subject: 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. --- arg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arg.h b/arg.h index d428660..6a3f112 100644 --- 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)) -- cgit v1.2.3