summaryrefslogtreecommitdiff
path: root/lib/libc/sys/makelintstub.sh
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2010-07-24 23:32:53 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2010-07-24 23:32:53 +0000
commit7b2e9e6ed2592d47bd12b2f9d4b265112f183699 (patch)
tree8b0fa5491efec0707f8408e320a1f06d6d1a8803 /lib/libc/sys/makelintstub.sh
parent6050b159360cdf90c7b3df32829a0d05e9167eea (diff)
Add a newline to the input we feed to cpp to get rid of its 'no newline
at end of file' warnings. Simplify the shell quoting to make it easier to read while we're at it "looks allright" beck@
Diffstat (limited to 'lib/libc/sys/makelintstub.sh')
-rw-r--r--lib/libc/sys/makelintstub.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/makelintstub.sh b/lib/libc/sys/makelintstub.sh
index b403bb68b6a..b8a1d9ea87d 100644
--- a/lib/libc/sys/makelintstub.sh
+++ b/lib/libc/sys/makelintstub.sh
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: makelintstub.sh,v 1.8 2009/06/03 14:45:47 jj Exp $
+# $OpenBSD: makelintstub.sh,v 1.9 2010/07/24 23:32:52 guenther Exp $
# $NetBSD: makelintstub,v 1.2 1997/11/05 05:46:18 thorpej Exp $
#
# Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved.
@@ -88,9 +88,9 @@ syscall_stub()
syscallname="$2"
funcname="$3"
- arglist="`printf '#include "'"$syscallhdr"'"' | cpp -C | \
+ arglist=$(printf '#include "%s"\n' "$syscallhdr" | cpp -C | \
grep '^/\* syscall: "'"$syscallname"'" ' | \
- sed -e 's,^/\* syscall: ,,;s, \*/$,,'`"
+ sed -e 's,^/\* syscall: ,,;s, \*/$,,')
eval set -f -- "$arglist"