From 8a57ec471c6e6fc6979dfad0415a5665fdb43320 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 9 Nov 2005 08:27:28 +0000 Subject: [PATCH] Rename argument to zebra_rec_keys_set_buf --- index/reckeys.c | 8 ++++---- index/reckeys.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index/reckeys.c b/index/reckeys.c index 4e23c93..174e895 100644 --- a/index/reckeys.c +++ b/index/reckeys.c @@ -1,4 +1,4 @@ -/* $Id: reckeys.c,v 1.1 2005-10-28 09:22:50 adam Exp $ +/* $Id: reckeys.c,v 1.2 2005-11-09 08:27:28 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -52,13 +52,13 @@ zebra_rec_keys_t zebra_rec_keys_open() } void zebra_rec_keys_set_buf(zebra_rec_keys_t p, char *buf, size_t sz, - int owner) + int copy_buf) { if (p->owner_of_buffer) xfree(p->buf); p->buf_used = sz; p->buf_max = sz; - if (!owner) + if (!copy_buf) { p->buf = buf; } @@ -72,7 +72,7 @@ void zebra_rec_keys_set_buf(zebra_rec_keys_t p, char *buf, size_t sz, memcpy(p->buf, buf, sz); } } - p->owner_of_buffer = owner; + p->owner_of_buffer = copy_buf; } void zebra_rec_keys_get_buf(zebra_rec_keys_t p, char **buf, size_t *sz) diff --git a/index/reckeys.h b/index/reckeys.h index 8f7bbee..5a27e1b 100644 --- a/index/reckeys.h +++ b/index/reckeys.h @@ -1,4 +1,4 @@ -/* $Id: reckeys.h,v 1.1 2005-10-28 09:22:50 adam Exp $ +/* $Id: reckeys.h,v 1.2 2005-11-09 08:27:28 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -45,6 +45,6 @@ int zebra_rec_keys_empty(zebra_rec_keys_t keys); void zebra_rec_keys_get_buf(zebra_rec_keys_t p, char **buf, size_t *sz); void zebra_rec_keys_set_buf(zebra_rec_keys_t p, char *buf, size_t sz, - int owner); + int copy_buf); #endif -- 1.7.10.4