diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-02-18 20:01:32 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-02-18 20:43:59 +0000 |
commit | a87d010d379330fc8bb92adeb7a9a8699d132c58 (patch) | |
tree | 805ed75eb7ca744401eb321bc0fcae50560191b0 | |
parent | a839518dcd9804050309ef0221c0587772d49f36 (diff) | |
download | procd-a87d010d379330fc8bb92adeb7a9a8699d132c58.tar.gz |
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 <daniel@makrotopia.org>
-rw-r--r-- | uxc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |