summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-03-24 01:21:50 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-03-24 01:21:50 +0000
commit58f4c9742703c326c469bc998bfc3668d221cfb2 (patch)
treef848c72f837794ca04a3fca366b86f360e0f8bfe /usr.bin
parent5e8d2f93a2fc7686076b1662303e6d3ce4045879 (diff)
add the string table code and enable it on startup
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/cvs.c7
-rw-r--r--usr.bin/cvs/cvs/Makefile4
2 files changed, 8 insertions, 3 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c
index 2c844099ed5..ae7c8ab32d2 100644
--- a/usr.bin/cvs/cvs.c
+++ b/usr.bin/cvs/cvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.c,v 1.43 2005/03/24 01:03:41 joris Exp $ */
+/* $OpenBSD: cvs.c,v 1.44 2005/03/24 01:21:49 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -41,6 +41,7 @@
#include "cvs.h"
#include "log.h"
#include "file.h"
+#include "strtab.h"
extern char *__progname;
@@ -338,6 +339,8 @@ main(int argc, char **argv)
(void)cvs_log_filter(LP_FILTER_UNSET, LP_DEBUG);
#endif
+ cvs_strtab_init();
+
/* check environment so command-line options override it */
if ((envstr = getenv("CVS_RSH")) != NULL)
cvs_rsh = envstr;
@@ -431,6 +434,8 @@ main(int argc, char **argv)
if (cvs_msg != NULL)
free(cvs_msg);
+ cvs_strtab_cleanup();
+
return (ret);
}
diff --git a/usr.bin/cvs/cvs/Makefile b/usr.bin/cvs/cvs/Makefile
index 688be163acd..c982723f3dd 100644
--- a/usr.bin/cvs/cvs/Makefile
+++ b/usr.bin/cvs/cvs/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.19 2005/03/24 01:03:41 joris Exp $
+# $OpenBSD: Makefile,v 1.20 2005/03/24 01:21:49 jfb Exp $
.PATH: ${.CURDIR}/..
@@ -8,7 +8,7 @@ MAN= cvs.1 cvsrc.5 cvsintro.7
SRCS= cvs.c add.c admin.c annotate.c buf.c checkout.c cmd.c commit.c diff.c \
entries.c file.c getlog.c history.c hist.c import.c init.c log.c \
logmsg.c proto.c rcs.c rcsnum.c remove.c req.c resp.c root.c \
- server.c sock.c status.c tag.c update.c util.c version.c
+ server.c sock.c status.c strtab.c tag.c update.c util.c version.c
BINDIR= /usr/bin
BINOWN= root