From b8235a9576184618108ec3c1f6c6ad7eaaecb28c Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 17 Apr 2019 20:09:53 -0700 Subject: driver: Use arrayforeach --- driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver.c b/driver.c index 4193cdd..380a28e 100644 --- a/driver.c +++ b/driver.c @@ -488,7 +488,7 @@ main(int argc, char *argv[]) usage("cannot specify -o with multiple input files without linking"); } } - for (input = inputs.val; input < (struct input *)((char *)inputs.val + inputs.len); ++input) + arrayforeach (&inputs, input) buildobj(input, output, last); if (last == LINK) { if (!output) -- cgit v1.2.3