From: Andre Noll Date: Tue, 31 Oct 2023 20:08:45 +0000 (+0100) Subject: Fix typo in config file test program. X-Git-Tag: v1.0.5~21 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=b1d260c20c7df69bea7b9882928f8329e786db77;p=lopsub.git Fix typo in config file test program. This code is #ifdef'ed out, so the typo was never noticed. Add a comment which explains how to create a binary from the .l file while at it. --- diff --git a/config_file.l b/config_file.l index 58aab83..37cb0ac 100644 --- a/config_file.l +++ b/config_file.l @@ -285,6 +285,7 @@ free_argv: } #if 0 +/* flex -o t.c config_file.l && cc -o tcf t.c */ int main(void) { char buf[100 * 1024]; @@ -300,7 +301,7 @@ int main(void) exit(EXIT_FAILURE); argc = ret; for (i = 0; i < argc; i++) - printf("argv[%d]: %s\n", i, rargv[i]); + printf("argv[%d]: %s\n", i, argv[i]); return EXIT_SUCCESS; } #endif