diff options
author | peter <peter@FreeBSD.org> | 1999-01-04 18:39:24 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-01-04 18:39:24 +0000 |
commit | 6a8415504a888d3cea4e34a73ef1233790162374 (patch) | |
tree | a4011106b1389c405519296480e47cd3e9f7c4f5 /sys/boot/common/interp_forth.c | |
parent | 0e973448d5211fd649509ba32d95bf1f76ef6f8e (diff) | |
download | FreeBSD-src-6a8415504a888d3cea4e34a73ef1233790162374.zip FreeBSD-src-6a8415504a888d3cea4e34a73ef1233790162374.tar.gz |
Fix variable initialization.. It was written with '==' instead of '-'.
#include <string.h> for string prototypes.
Diffstat (limited to 'sys/boot/common/interp_forth.c')
-rw-r--r-- | sys/boot/common/interp_forth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/common/interp_forth.c b/sys/boot/common/interp_forth.c index 06daf7a..68e0934 100644 --- a/sys/boot/common/interp_forth.c +++ b/sys/boot/common/interp_forth.c @@ -23,9 +23,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: interp_forth.c,v 1.7 1998/11/07 06:18:00 jkh Exp $ + * $Id: interp_forth.c,v 1.8 1998/12/22 11:41:51 abial Exp $ */ +#include <string.h> #include <stand.h> #include "bootstrap.h" #include "ficl.h" @@ -62,7 +63,7 @@ bf_command(FICL_VM *vm) name = vm->runningWord->name; /* Find our command structure */ - cmd == NULL; + cmd = NULL; SET_FOREACH(cmdp, Xcommand_set) { if (((*cmdp)->c_name != NULL) && !strcmp(name, (*cmdp)->c_name)) cmd = (*cmdp)->c_fn; |