aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2001-09-05 01:27:53 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2001-09-05 01:27:53 +0000
commitfaf73940c6e09295a85c155905393af5fa1f213c (patch)
treed2d58cf777406ff0105482034287bf8aab847d2f
parent5752bffd550d9f7cab944dd10d2d4d562b56b09f (diff)
downloadsrc-faf73940c6e09295a85c155905393af5fa1f213c.tar.gz
src-faf73940c6e09295a85c155905393af5fa1f213c.zip
Fix the definition generation code from rev 1.15 that generates non-style(9)
compliant structure definitions.
Notes
Notes: svn path=/head/; revision=83046
-rw-r--r--sys/kern/makesyscalls.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh
index 168426e37ca5..e50537996db8 100644
--- a/sys/kern/makesyscalls.sh
+++ b/sys/kern/makesyscalls.sh
@@ -305,7 +305,7 @@ s/\$//g
if ((!nosys || funcname != "nosys") && \
(funcname != "lkmnosys") && (funcname != "lkmressys")) {
if (argc != 0 && $2 != "NOARGS" && $2 != "NOPROTO") {
- printf("struct\t%s {\n", argalias) > sysarg
+ printf("struct %s {\n", argalias) > sysarg
for (i = 1; i <= argc; i++)
printf("\tchar %s_l_[PADL_(%s)]; " \
"%s %s; char %s_r_[PADR_(%s)];\n",
@@ -315,7 +315,7 @@ s/\$//g
printf("};\n") > sysarg
}
else if($2 != "NOARGS" && $2 != "NOPROTO")
- printf("struct\t%s {\n\tregister_t dummy;\n};\n",
+ printf("struct %s {\n\tregister_t dummy;\n};\n",
argalias) > sysarg
}
if ($2 != "NOPROTO" && (!nosys || funcname != "nosys") && \
@@ -358,7 +358,7 @@ s/\$//g
ncompat++
parseline()
if (argc != 0 && $2 != "CPT_NOA") {
- printf("struct\t%s {\n", argalias) > syscompat
+ printf("struct %s {\n", argalias) > syscompat
for (i = 1; i <= argc; i++)
printf("\tchar %s_l_[PADL_(%s)]; %s %s; " \
"char %s_r_[PADR_(%s)];\n",
@@ -368,7 +368,7 @@ s/\$//g
printf("};\n") > syscompat
}
else if($2 != "CPT_NOA")
- printf("struct\t%s {\n\tregister_t dummy;\n};\n",
+ printf("struct %s {\n\tregister_t dummy;\n};\n",
argalias) > sysarg
printf("%s\to%s __P((struct proc *, struct %s *));\n",
rettype, funcname, argalias) > syscompatdcl