summaryrefslogtreecommitdiffstats
path: root/bin/sh/bltin
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-06-13 21:03:27 +0000
committerjilles <jilles@FreeBSD.org>2011-06-13 21:03:27 +0000
commit16addb86733d970dc3f900be1a0536276292efbe (patch)
tree007f3e31e27062e0bd6f94d06d03f38056fc4685 /bin/sh/bltin
parent83fe27f2b389dab3f912243ac3e6a6b726ebed3a (diff)
downloadFreeBSD-src-16addb86733d970dc3f900be1a0536276292efbe.zip
FreeBSD-src-16addb86733d970dc3f900be1a0536276292efbe.tar.gz
sh: Fix duplicate prototypes for builtins.
Have mkbuiltins write the prototypes for the *cmd functions to builtins.h instead of builtins.c and include builtins.h in more .c files instead of duplicating prototypes for *cmd functions in other headers.
Diffstat (limited to 'bin/sh/bltin')
-rw-r--r--bin/sh/bltin/bltin.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/sh/bltin/bltin.h b/bin/sh/bltin/bltin.h
index e449673..0143b6e 100644
--- a/bin/sh/bltin/bltin.h
+++ b/bin/sh/bltin/bltin.h
@@ -43,6 +43,7 @@
#include "../mystring.h"
#ifdef SHELL
#include "../output.h"
+#include "builtins.h"
#define FILE struct output
#undef stdout
#define stdout out1
@@ -75,7 +76,4 @@ pointer stalloc(int);
void error(const char *, ...) __printf0like(1, 2);
pid_t getjobpgrp(char *);
-int echocmd(int, char **);
-int testcmd(int, char **);
-
extern char *commandname;
OpenPOWER on IntegriCloud