diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c2bdb4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +worm diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..76dab52 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +worm: worm.c + gcc -o worm worm.c -l curses diff --git a/Makefile.bsd b/Makefile.bsd deleted file mode 100644 index 355cde9..0000000 --- a/Makefile.bsd +++ /dev/null @@ -1,10 +0,0 @@ -# $NetBSD: Makefile,v 1.6 1998/02/18 22:37:32 jtc Exp $ -# @(#)Makefile 8.1 (Berkeley) 5/31/93 - -PROG= worm -MAN= worm.6 -DPADD= ${LIBCURSES} -LDADD= -lcurses -HIDEGAME=hidegame - -.include diff --git a/Makefrag b/Makefrag deleted file mode 100644 index 8a46971..0000000 --- a/Makefrag +++ /dev/null @@ -1,36 +0,0 @@ -# Makefrag - makefile fragment for worm -# -# Copyright (c) 1997, 1998 Joseph Samuel Myers. -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. The name of the author may not be used to endorse or promote products -# derived from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED -# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. - -worm_DIRS := $(GAMESDIR) $(MAN6DIR) - -worm_all: worm/worm worm/worm.6 - -worm_install: worm_all - $(INSTALL_BINARY) worm/worm $(INSTALL_PREFIX)$(GAMESDIR)/worm - $(HIDE_GAME) worm - $(INSTALL_MANUAL) worm/worm.6 diff --git a/worm.c b/worm.c index 668c679..b35c7ae 100644 --- a/worm.c +++ b/worm.c @@ -4,6 +4,9 @@ * Copyright (c) 1980, 1993 * The Regents of the University of California. All rights reserved. * + * Copyright (c) 2021 + * Samuel L Sloniker. All rights reserved. + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -29,11 +32,12 @@ * SUCH DAMAGE. */ +/* #include #ifndef lint __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ The Regents of the University of California. All rights reserved.\n"); -#endif /* not lint */ +#endif / * not lint * / #ifndef lint #if 0 @@ -41,7 +45,8 @@ static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93"; #else __RCSID("$NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $"); #endif -#endif /* not lint */ +#endif / * not lint * / +*/ /* * Worm. Written by Michael Toy