Browse Source

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>
Daniel Golle 2 years ago
parent
commit
a87d010d37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      uxc.c

+ 1 - 1
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);