diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2022-11-29 16:35:48 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-12-04 16:06:35 +0100 |
commit | 1392bec7de92888af06d98d11d306241b2e1f68f (patch) | |
tree | 86a076c03e27a0f92be301f6a7e927ee0f5fdb46 /package | |
parent | 88e8ca256bc92765fcd34c7e371163ac38b623f6 (diff) | |
download | upstream-1392bec7de92888af06d98d11d306241b2e1f68f.tar.gz upstream-1392bec7de92888af06d98d11d306241b2e1f68f.tar.bz2 upstream-1392bec7de92888af06d98d11d306241b2e1f68f.zip |
procd: add patch to fix compilation error
procd complain for an unused verbose variable causing compilation error.
Fix this by setting the variable static following upstream procd
changes.
This is a variant of 0ee73b2c86a853ae3274c7080e2dcd36b81aa1fa that
introduced major change and fixed the verbose variable to static.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/system/procd/patches/0001-uxc-fix-compilation-error-caused-by-unused-variable.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/system/procd/patches/0001-uxc-fix-compilation-error-caused-by-unused-variable.patch b/package/system/procd/patches/0001-uxc-fix-compilation-error-caused-by-unused-variable.patch new file mode 100644 index 0000000000..6c1a21ebea --- /dev/null +++ b/package/system/procd/patches/0001-uxc-fix-compilation-error-caused-by-unused-variable.patch @@ -0,0 +1,36 @@ +From 2ddf0005298e08ba1e358d95be6b826c56a7d1fc Mon Sep 17 00:00:00 2001 +From: Christian Marangi <ansuelsmth@gmail.com> +Date: Tue, 29 Nov 2022 16:33:23 +0100 +Subject: [PATCH] uxc: fix compilation error caused by unused variable + +Fix compilation error caused by unused verbose variable. + +Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> +--- + uxc.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/uxc.c b/uxc.c +index eb40eb2..b22d838 100644 +--- a/uxc.c ++++ b/uxc.c +@@ -80,6 +80,8 @@ static struct blob_buf conf; + static struct blob_buf state; + static struct ubus_context *ctx; + ++static bool verbose = false; ++ + static int usage(void) { + printf("syntax: uxc <command> [parameters ...]\n"); + printf("commands:\n"); +@@ -724,7 +726,6 @@ int main(int argc, char **argv) + char *pidfile = NULL; + bool autostart = false; + bool force = false; +- bool verbose = false; + int signal = SIGTERM; + int c; + +-- +2.37.2 + |