From b1d260c20c7df69bea7b9882928f8329e786db77 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 31 Oct 2023 21:08:45 +0100 Subject: [PATCH] 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. --- config_file.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2