aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
authorChris Kuhn <kuhnchris+github@kuhnchris.eu>2023-03-08 03:47:45 +0100
committerStefano Brivio <sbrivio@redhat.com>2023-03-09 03:44:21 +0100
commit5c58feab7bbf55ffec35df2c5f82f0d288a3c987 (patch)
treeb195ace82d1ff3629c9d5d0ee7ba429142a1f847 /passt.h
parentfde8004ab0b4c948cec5462b1c64ced824551cbe (diff)
downloadpasst-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 'passt.h')
-rw-r--r--passt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/passt.h b/passt.h
index b73f4ff..006d1c1 100644
--- a/passt.h
+++ b/passt.h
@@ -158,7 +158,7 @@ struct ip6_ctx {
* @trace: Enable tracing (extra debug) mode
* @quiet: Don't print informational messages
* @foreground: Run in foreground, don't log to stderr by default
- * @stderr: Force logging to stderr
+ * @force_stderr: Force logging to stderr
* @nofile: Maximum number of open files (ulimit -n)
* @sock_path: Path for UNIX domain socket
* @pcap: Path for packet capture file
@@ -207,7 +207,7 @@ struct ctx {
int trace;
int quiet;
int foreground;
- int stderr;
+ int force_stderr;
int nofile;
char sock_path[UNIX_PATH_MAX];
char pcap[PATH_MAX];