projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a839518
)
uxc: remove unused printf parameter
author
Daniel Golle
<daniel@makrotopia.org>
Fri, 18 Feb 2022 20:01:32 +0000
(20:01 +0000)
committer
Daniel Golle
<daniel@makrotopia.org>
Fri, 18 Feb 2022 20:43:59 +0000
(20:43 +0000)
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>
uxc.c
patch
|
blob
|
history
diff --git
a/uxc.c
b/uxc.c
index 230e19bf6032ac5a2d90216d25b6ec7ee3c930f7..332b91d268e56bd9cd383f9c9f995a8c7c1c4c0d 100644
(file)
--- 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);