summaryrefslogtreecommitdiffstats
path: root/bin/sh/mkbuiltins
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/mkbuiltins')
-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