diff options
author | Chris Kuhn <kuhnchris+github@kuhnchris.eu> | 2023-03-08 03:47:45 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-03-09 03:44:21 +0100 |
commit | 5c58feab7bbf55ffec35df2c5f82f0d288a3c987 (patch) | |
tree | b195ace82d1ff3629c9d5d0ee7ba429142a1f847 /conf.c | |
parent | fde8004ab0b4c948cec5462b1c64ced824551cbe (diff) | |
download | passt-5c58feab7bbf55ffec35df2c5f82f0d288a3c987.tar passt-5c58feab7bbf55ffec35df2c5f82f0d288a3c987.tar.gz passt-5c58feab7bbf55ffec35df2c5f82f0d288a3c987.tar.bz2 passt-5c58feab7bbf55ffec35df2c5f82f0d288a3c987.tar.lz passt-5c58feab7bbf55ffec35df2c5f82f0d288a3c987.tar.xz passt-5c58feab7bbf55ffec35df2c5f82f0d288a3c987.tar.zst passt-5c58feab7bbf55ffec35df2c5f82f0d288a3c987.zip |
conf, passt: Rename stderr to force_stderr
While building against musl, gcc informs us that 'stderr' is a
protected keyword. This probably comes from a #define stderr (stderr)
in musl's stdio.h, to avoid a clash with extern FILE *const stderr,
but I didn't really track it down. Just rename it to force_stderr, it
makes more sense.
[sbrivio: Added commit message]
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1357,13 +1357,13 @@ void conf(struct ctx *c, int argc, char **argv) if (logfile) die("Can't log to both file and stderr"); - if (c->stderr) + if (c->force_stderr) die("Multiple --stderr options given"); - c->stderr = 1; + c->force_stderr = 1; break; case 'l': - if (c->stderr) + if (c->force_stderr) die("Can't log to both stderr and file"); if (logfile) |