Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src remove mpool_getf



details:   https://anonhg.NetBSD.org/src/rev/5c70680c1641
branches:  trunk
changeset: 347947:5c70680c1641
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Sep 24 21:18:09 2016 +0000

description:
remove mpool_getf

diffstat:

 include/mpool.h          |  5 ++---
 tests/lib/libc/db/h_db.c |  6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r 6c41d9aa1b3d -r 5c70680c1641 include/mpool.h
--- a/include/mpool.h   Sat Sep 24 21:13:44 2016 +0000
+++ b/include/mpool.h   Sat Sep 24 21:18:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mpool.h,v 1.15 2016/09/24 20:11:43 christos Exp $      */
+/*     $NetBSD: mpool.h,v 1.16 2016/09/24 21:18:09 christos Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -102,8 +102,7 @@
 void   *mpool_new(MPOOL *, pgno_t *);
 void   *mpool_newf(MPOOL *, pgno_t *, unsigned int);
 int     mpool_delete(MPOOL *, void *);
-void   *mpool_get(MPOOL *, pgno_t);
-void   *mpool_getf(MPOOL *, pgno_t, unsigned int);
+void   *mpool_get(MPOOL *, pgno_t, unsigned int);
 int     mpool_put(MPOOL *, void *, unsigned int);
 int     mpool_sync(MPOOL *);
 int     mpool_close(MPOOL *);
diff -r 6c41d9aa1b3d -r 5c70680c1641 tests/lib/libc/db/h_db.c
--- a/tests/lib/libc/db/h_db.c  Sat Sep 24 21:13:44 2016 +0000
+++ b/tests/lib/libc/db/h_db.c  Sat Sep 24 21:18:09 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_db.c,v 1.2 2016/09/24 20:12:33 christos Exp $        */
+/*     $NetBSD: h_db.c,v 1.3 2016/09/24 21:18:22 christos Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)dbtest.c   8.17 (Berkeley) 9/1/94";
 #else
-__RCSID("$NetBSD: h_db.c,v 1.2 2016/09/24 20:12:33 christos Exp $");
+__RCSID("$NetBSD: h_db.c,v 1.3 2016/09/24 21:18:22 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -529,7 +529,7 @@
 
        for (pg = P_ROOT; pg < t->bt_mp->npages;
             mpool_put(t->bt_mp, h, 0), pg++) {
-               if ((h = mpool_getf(t->bt_mp, pg, 0)) == NULL)
+               if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
                        break;
                /* Look for a nonempty leaf page that has both left
                 * and right siblings. */



Home | Main Index | Thread Index | Old Index