From a87d010d379330fc8bb92adeb7a9a8699d132c58 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 18 Feb 2022 20:01:32 +0000 Subject: [PATCH] uxc: remove unused printf parameter Remove unused string paramter from asprintf. Fixes build with glibc because warnings are treated as errors. Fixes: df1123e ("uxc: add support for user-defined settings") Signed-off-by: Daniel Golle --- uxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uxc.c b/uxc.c index 230e19b..332b91d 100644 --- a/uxc.c +++ b/uxc.c @@ -1034,7 +1034,7 @@ static int uxc_set(char *name, char *path, signed char autostart, char *pidfile, t2 = strrchr(t1, '/'); *t2 = '\0'; - if (asprintf(&t2, "%s/settings", t1, name) == -1) + if (asprintf(&t2, "%s/settings", t1) == -1) return -ENOMEM; ret = mkdir(t2, 0755); -- 2.30.2