-/* $Id: config.c,v 1.7 2007-01-09 18:06:28 quinn Exp $ */
+/* $Id: config.c,v 1.8 2007-01-10 10:04:23 adam Exp $ */
#include <string.h>
xmlChar *charset = xmlGetProp(n, "charset");
xmlChar *format = xmlGetProp(n, "format");
xmlChar *stylesheet = xmlGetProp(n, "stylesheet");
- bzero(m, sizeof(*m));
+ memset(m, 0, sizeof(*m));
if (type)
{
if (!strcmp(type, "xslt"))
/*
- * $Id: http.c,v 1.7 2007-01-10 09:35:57 adam Exp $
+ * $Id: http.c,v 1.8 2007-01-10 10:04:23 adam Exp $
*/
#include <stdio.h>
yaz_log(YLOG_LOG, "HTTP listener is %s", addr);
- bzero(&myaddr, sizeof myaddr);
+ memset(&myaddr, 0, sizeof myaddr);
myaddr.sin_family = AF_INET;
pp = strchr(addr, ':');
if (pp)
-/* $Id: pazpar2.c,v 1.22 2007-01-09 22:06:49 quinn Exp $ */;
+/* $Id: pazpar2.c,v 1.23 2007-01-10 10:04:23 adam Exp $ */;
#include <stdlib.h>
#include <stdio.h>
res->next = 0;
res->metadata = nmem_malloc(se->nmem,
sizeof(struct record_metadata*) * service->num_metadata);
- bzero(res->metadata, sizeof(struct record_metadata*) * service->num_metadata);
+ memset(res->metadata, 0, sizeof(struct record_metadata*) * service->num_metadata);
mergekey_norm = nmem_strdup(se->nmem, (char*) mergekey);
xmlFree(mergekey);
struct client *cl;
int count = 0;
- bzero(stat, sizeof(*stat));
+ memset(stat, 0, sizeof(*stat));
for (cl = se->clients; cl; cl = cl->next)
{
if (!cl->connection)
/*
- * $Id: reclists.c,v 1.5 2007-01-09 22:06:49 quinn Exp $
+ * $Id: reclists.c,v 1.6 2007-01-10 10:04:23 adam Exp $
*/
#include <assert.h>
hashsize <<= 1;
res = nmem_malloc(nmem, sizeof(struct reclist));
res->hashtable = nmem_malloc(nmem, hashsize * sizeof(struct reclist_bucket*));
- bzero(res->hashtable, hashsize * sizeof(struct reclist_bucket*));
+ memset(res->hashtable, 0, hashsize * sizeof(struct reclist_bucket*));
res->hashtable_size = hashsize;
res->nmem = nmem;
res->hashmask = hashsize - 1; // Creates a bitmask
newc->metadata = 0;
newc->metadata = nmem_malloc(l->nmem,
sizeof(struct record_metadata*) * service->num_metadata);
- bzero(newc->metadata, sizeof(struct record_metadata*) * service->num_metadata);
+ memset(newc->metadata, 0, sizeof(struct record_metadata*) * service->num_metadata);
*p = new;
l->flatlist[l->num_records++] = newc;
/*
- * $Id: relevance.c,v 1.6 2007-01-08 19:39:12 quinn Exp $
+ * $Id: relevance.c,v 1.7 2007-01-10 10:04:23 adam Exp $
*/
#include <ctype.h>
;
res->vec_len = ++i;
res->doc_frequency_vec = nmem_malloc(nmem, res->vec_len * sizeof(int));
- bzero(res->doc_frequency_vec, res->vec_len * sizeof(int));
+ memset(res->doc_frequency_vec, 0, res->vec_len * sizeof(int));
res->nmem = nmem;
res->wt = build_word_trie(nmem, terms);
return res;
if (!rec->term_frequency_vec)
{
rec->term_frequency_vec = nmem_malloc(r->nmem, r->vec_len * sizeof(int));
- bzero(rec->term_frequency_vec, r->vec_len * sizeof(int));
+ memset(rec->term_frequency_vec, 0, r->vec_len * sizeof(int));
}
}
/*
- * $Id: termlists.c,v 1.3 2007-01-08 18:32:35 quinn Exp $
+ * $Id: termlists.c,v 1.4 2007-01-10 10:04:23 adam Exp $
*/
#include <stdlib.h>
hashsize <<= 1;
res = nmem_malloc(nmem, sizeof(struct termlist));
res->hashtable = nmem_malloc(nmem, hashsize * sizeof(struct termlist_bucket*));
- bzero(res->hashtable, hashsize * sizeof(struct termlist_bucket*));
+ memset(res->hashtable, 0, hashsize * sizeof(struct termlist_bucket*));
res->hashtable_size = hashsize;
res->nmem = nmem;
res->hashmask = hashsize - 1; // Creates a bitmask