summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-08-13 08:09:22 +0000
committerstefanf <stefanf@FreeBSD.org>2005-08-13 08:09:22 +0000
commite0153329654e608534480d829bf8ec97c44e7661 (patch)
treea01be3c5d09455d499bb141388bed2c8d34788d8 /bin
parent55d94ede25aaac4dd76768a4e7071d1d71e23185 (diff)
downloadFreeBSD-src-e0153329654e608534480d829bf8ec97c44e7661.zip
FreeBSD-src-e0153329654e608534480d829bf8ec97c44e7661.tar.gz
Use prototypes in the generated builtins.{c,h} files.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sh/mkbuiltins6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/mkbuiltins b/bin/sh/mkbuiltins
index e05c8d0..144505c 100755
--- a/bin/sh/mkbuiltins
+++ b/bin/sh/mkbuiltins
@@ -58,9 +58,9 @@ cat <<\!
!
awk '/^[^#]/ {if(('$havejobs' || $2 != "-j") && ('$havehist' || $2 != "-h")) \
print $0}' builtins.def | sed 's/-[hj]//' > $temp
-awk '{ printf "int %s();\n", $1}' $temp
+awk '{ printf "int %s(int, char **);\n", $1}' $temp
echo '
-int (*const builtinfunc[])() = {'
+int (*const builtinfunc[])(int, char **) = {'
awk '/^[^#]/ { printf "\t%s,\n", $1}' $temp
echo '};
@@ -87,6 +87,6 @@ struct builtincmd {
int code;
};
-extern int (*const builtinfunc[])();
+extern int (*const builtinfunc[])(int, char **);
extern const struct builtincmd builtincmd[];'
rm -f $temp
OpenPOWER on IntegriCloud