From 679c40787a087851e0878c35c315f71eddaf0bd2 Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Wed, 15 Dec 2004 05:09:07 +0000 Subject: we don't need a separate header for 4 function prototypes, move them in rcs.h --- usr.bin/cvs/cache.c | 5 ++--- usr.bin/cvs/cache.h | 39 --------------------------------------- usr.bin/cvs/rcs.h | 7 ++++++- 3 files changed, 8 insertions(+), 43 deletions(-) delete mode 100644 usr.bin/cvs/cache.h (limited to 'usr.bin') diff --git a/usr.bin/cvs/cache.c b/usr.bin/cvs/cache.c index e090ff36801..e9bce11087c 100644 --- a/usr.bin/cvs/cache.c +++ b/usr.bin/cvs/cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cache.c,v 1.2 2004/12/07 17:10:56 tedu Exp $ */ +/* $OpenBSD: cache.c,v 1.3 2004/12/15 05:09:06 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -36,7 +36,6 @@ #include "log.h" #include "rcs.h" -#include "cache.h" #define RCS_CACHE_BUCKETS 256 @@ -48,7 +47,7 @@ struct rcs_cachent { struct timeval rc_atime; TAILQ_ENTRY(rcs_cachent) rc_list; - TAILQ_ENTRY(rcs_cachent) rc_lru; + TAILQ_ENTRY(rcs_cachent) rc_lru; }; diff --git a/usr.bin/cvs/cache.h b/usr.bin/cvs/cache.h deleted file mode 100644 index fb85e6975a4..00000000000 --- a/usr.bin/cvs/cache.h +++ /dev/null @@ -1,39 +0,0 @@ -/* $OpenBSD: cache.h,v 1.3 2004/12/09 19:54:09 jfb Exp $ */ -/* - * Copyright (c) 2004 Jean-Francois Brousseau - * 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. 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 ``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. - */ - -#ifndef CACHE_H -#define CACHE_H - -#include - -#include "rcs.h" - -int rcs_cache_init (u_int); -RCSFILE *rcs_cache_fetch (const char *path); -int rcs_cache_store (RCSFILE *); -void rcs_cache_destroy (void); - -#endif /* CACHE_H */ diff --git a/usr.bin/cvs/rcs.h b/usr.bin/cvs/rcs.h index 6cfc273f214..d6ace23f5bd 100644 --- a/usr.bin/cvs/rcs.h +++ b/usr.bin/cvs/rcs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.h,v 1.2 2004/12/07 17:10:56 tedu Exp $ */ +/* $OpenBSD: rcs.h,v 1.3 2004/12/15 05:09:06 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -143,5 +143,10 @@ char* rcsnum_tostr (const RCSNUM *, char *, size_t); int rcsnum_cpy (const RCSNUM *, RCSNUM *, u_int); int rcsnum_cmp (const RCSNUM *, const RCSNUM *, u_int); +/* from cache.c */ +int rcs_cache_init (u_int); +RCSFILE *rcs_cache_fetch (const char *path); +int rcs_cache_store (RCSFILE *); +void rcs_cache_destroy (void); #endif /* RCS_H */ -- cgit v1.2.3