summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2010-07-02 22:43:37 +0000
committerguenther <guenther@openbsd.org>2010-07-02 22:43:37 +0000
commit881ae1fb586301ffef00a26151c525925ab61e63 (patch)
treed55c0236b968575b4b35e3b4acd4f762bc629896
parentDon't bother trying to handle a uvm_pglistalloc failure when called with (diff)
downloadwireguard-openbsd-881ae1fb586301ffef00a26151c525925ab61e63.tar.xz
wireguard-openbsd-881ae1fb586301ffef00a26151c525925ab61e63.zip
tags.c isn't needed at all, so exclude the entire object instead of
commenting it out top-to-bottom ok deraadt@
-rw-r--r--distrib/special/less/Makefile4
-rw-r--r--usr.bin/less/tags.c5
2 files changed, 3 insertions, 6 deletions
diff --git a/distrib/special/less/Makefile b/distrib/special/less/Makefile
index 23294002529..8eb9d87e681 100644
--- a/distrib/special/less/Makefile
+++ b/distrib/special/less/Makefile
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.3 2010/07/02 21:51:06 deraadt Exp $
+# $OpenBSD: Makefile,v 1.4 2010/07/02 22:43:37 guenther Exp $
PROG= less
SRCS= main.c screen.c brac.c ch.c charset.c cmdbuf.c command.c decode.c \
edit.c filename.c forwback.c help.c ifile.c input.c jump.c line.c \
linenum.c mark.c optfunc.c option.c opttbl.c os.c output.c \
- position.c prompt.c search.c signal.c tags.c ttyin.c version.c
+ position.c prompt.c search.c signal.c ttyin.c version.c
CFLAGS= ${PIPE} ${DEBUG} -I${.CURDIR} -DSMALL_PROGRAM
DPADD= ${LIBOCURSES}
LDADD= -locurses
diff --git a/usr.bin/less/tags.c b/usr.bin/less/tags.c
index e4387ae63fa..355b8577e79 100644
--- a/usr.bin/less/tags.c
+++ b/usr.bin/less/tags.c
@@ -13,8 +13,6 @@
#define WHITESP(c) ((c)==' ' || (c)=='\t')
-#if TAGS
-
public char *tags = "tags";
static int total;
@@ -754,5 +752,4 @@ getentry(buf, tag, file, line)
return (0);
return (-1);
}
-
-#endif
+