~svn/ubuntu/lucid/serf/ppa

« back to all changes in this revision

Viewing changes to buckets/allocator.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Samuelson
  • Date: 2009-07-04 12:16:46 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20090704121646-sldkt2wnmyec8ism
Tags: upstream-0.3.0
ImportĀ upstreamĀ versionĀ 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
    return ((char *)node) + SIZEOF_NODE_HEADER_T;
205
205
}
206
206
 
 
207
SERF_DECLARE(void *) serf_bucket_mem_calloc(
 
208
    serf_bucket_alloc_t *allocator,
 
209
    apr_size_t size)
 
210
{
 
211
    void *mem;
 
212
    mem = serf_bucket_mem_alloc(allocator, size);
 
213
    memset(mem, 0, size);
 
214
    return mem;
 
215
}
 
216
 
207
217
SERF_DECLARE(void) serf_bucket_mem_free(
208
218
    serf_bucket_alloc_t *allocator,
209
219
    void *block)