]> git.saurik.com Git - apple/libc.git/blob - db/btree/FreeBSD/bt_overflow.c.patch
Libc-763.13.tar.gz
[apple/libc.git] / db / btree / FreeBSD / bt_overflow.c.patch
1 --- bt_overflow.c.orig 2009-11-06 12:39:34.000000000 -0800
2 +++ bt_overflow.c 2009-11-06 12:40:06.000000000 -0800
3 @@ -88,7 +88,7 @@ __ovfl_get(BTREE *t, void *p, size_t *ss
4
5 #ifdef DEBUG
6 if (pg == P_INVALID || sz == 0)
7 - abort();
8 + LIBC_ABORT("%s", pg == P_INVALID ? "pg == P_INVALID" : "sz == 0");
9 #endif
10 /* Make the buffer bigger as necessary. */
11 if (*bufsz < sz) {
12 @@ -192,7 +192,7 @@ __ovfl_delete(BTREE *t, void *p)
13
14 #ifdef DEBUG
15 if (pg == P_INVALID || sz == 0)
16 - abort();
17 + LIBC_ABORT("%s", pg == P_INVALID ? "pg == P_INVALID" : "sz == 0");
18 #endif
19 if ((h = mpool_get(t->bt_mp, pg, 0)) == NULL)
20 return (RET_ERROR);