From 6f7476bc694f4446d2172bd0cad4d369a3d9905d Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Thu, 24 Mar 2005 03:11:04 +0000 Subject: oops, call to old function that was missed --- usr.bin/cvs/strtab.c | 7 ++++--- usr.bin/cvs/strtab.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'usr.bin/cvs') 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 * 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 * 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 */ -- cgit v1.2.3