about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-11-10 16:32:50 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-11-10 16:32:50 +0100
commitf6485c2e162f1845fd896b6cb8391d52b58d528b (patch)
tree9d4a29f0eee1206b70c1cd404486ab71a155db30
parentf233e02dea581746ff8301b46f1f040a99fe0879 (diff)
downloadxe-f6485c2e162f1845fd896b6cb8391d52b58d528b.tar.gz
xe-f6485c2e162f1845fd896b6cb8391d52b58d528b.tar.xz
xe-f6485c2e162f1845fd896b6cb8391d52b58d528b.zip
rename shquote to sh_quote, clashes with NetBSD libc
-rw-r--r--xe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xe.c b/xe.c
index 3e0bc35..d1e61b2 100644
--- a/xe.c
+++ b/xe.c
@@ -130,7 +130,7 @@ my_child:
 }
 
 static void
-shquote(const char *s)
+sh_quote(const char *s)
 {
 	if (*s &&
 	    !strpbrk(s, "\001\002\003\004\005\006\007\010"
@@ -159,7 +159,7 @@ trace()
 	for (i = 0; i < argslen; i++) {
 		if (i > 0)
 			fprintf(traceout, " ");
-		shquote(args[i]);
+		sh_quote(args[i]);
 	}
 	fprintf(traceout, "\n");
 	fflush(traceout);