diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-12-15 09:06:04 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-12-15 09:06:04 -0500 |
commit | e1cd4d5eba5c3b9f8997d363e3aef0b4b5730fed (patch) | |
tree | 39f87b7443e744889fecb462bb42bb12bbfc6210 /src/packing | |
parent | 60366cf06906a23882e310b893c12f925517982c (diff) | |
download | mongo-e1cd4d5eba5c3b9f8997d363e3aef0b4b5730fed.tar.gz |
Most WiredTiger calloc calls are to allocate a single structure,
create the macro __wt_calloc_one that doesn't take a count or a
sizeof.
Diffstat (limited to 'src/packing')
-rw-r--r-- | src/packing/pack_stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packing/pack_stream.c b/src/packing/pack_stream.c index efbbd5d9adb..a35a3555458 100644 --- a/src/packing/pack_stream.c +++ b/src/packing/pack_stream.c @@ -30,7 +30,7 @@ wiredtiger_pack_start(WT_SESSION *wt_session, WT_SESSION_IMPL *session; session = (WT_SESSION_IMPL *)wt_session; - WT_RET(__wt_calloc_def(session, 1, &ps)); + WT_RET(__wt_calloc_one(session, &ps)); WT_ERR(__pack_init(session, &ps->pack, format)); ps->p = ps->start = buffer; ps->end = ps->p + len; |