summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-03-24 03:11:04 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2005-03-24 03:11:04 +0000
commit6f7476bc694f4446d2172bd0cad4d369a3d9905d (patch)
tree12bb0e1674cf98fc06cdf62f962469877000a37d /usr.bin/cvs
parent0415443373397b2354bf4a02f30d7e949d19efc7 (diff)
oops, call to old function that was missed
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/strtab.c7
-rw-r--r--usr.bin/cvs/strtab.h4
2 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/cvs/strtab.c b/usr.bin/cvs/strtab.c
index 9d48061c03b..9c22eda043c 100644
--- a/usr.bin/cvs/strtab.c
+++ b/usr.bin/cvs/strtab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strtab.c,v 1.1 2005/03/23 20:21:54 jfb Exp $ */
+/* $OpenBSD: strtab.c,v 1.2 2005/03/24 03:11:03 jfb Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -40,6 +40,7 @@
#include "cvs.h"
#include "log.h"
+#include "strtab.h"
#define CVS_STRTAB_HASHBITS 8
#define CVS_STRTAB_NBUCKETS (1 << CVS_STRTAB_HASHBITS)
@@ -86,7 +87,7 @@ cvs_strdup(const char *s)
* cvs_strfree()
*/
void
-cvs_strfree(char *s)
+cvs_strfree(const char *s)
{
cvs_strtab_free(s);
}
@@ -219,7 +220,7 @@ cvs_strtab_free(const char *str)
sp->cs_ref--;
if (sp->cs_ref == 0) {
/* no more references, free the file */
- h = cvs_file_hashname(sp->cs_str);
+ h = cvs_strtab_hash(sp->cs_str);
SLIST_REMOVE(&(cvs_strtab[h]), sp, cvs_str, cs_link);
free(sp->cs_str);
diff --git a/usr.bin/cvs/strtab.h b/usr.bin/cvs/strtab.h
index ca3b03f74fb..1a923f6c396 100644
--- a/usr.bin/cvs/strtab.h
+++ b/usr.bin/cvs/strtab.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: strtab.h,v 1.1 2005/03/23 20:21:54 jfb Exp $ */
+/* $OpenBSD: strtab.h,v 1.2 2005/03/24 03:11:03 jfb Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -35,6 +35,6 @@
void cvs_strtab_init (void);
void cvs_strtab_cleanup (void);
char* cvs_strdup (const char *);
-void cvs_strfree (char *);
+void cvs_strfree (const char *);
#endif /* STRTAB_H */