struct accept_filter_arg afa;
int i;
- bzero(&afa, sizeof(afa));
+ memset(&afa, 0, sizeof(afa));
strcpy(afa.af_name, "httpready");
errno = 0;
i = setsockopt(sock, SOL_SOCKET, SO_ACCEPTFILTER,
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <strings.h>
#include "libvarnish.h"
#include "vsb.h"
newbuf = (char *)SBMALLOC(newsize);
if (newbuf == NULL)
return (-1);
- bcopy(s->s_buf, newbuf, s->s_size);
+ memcpy(newbuf, s->s_buf, s->s_size);
if (VSB_ISDYNAMIC(s))
SBFREE(s->s_buf);
else
s = (struct vsb *)SBMALLOC(sizeof *s);
if (s == NULL)
return (NULL);
- bzero(s, sizeof *s);
+ memset(s, 0, sizeof *s);
s->s_flags = flags;
s->s_magic = VSB_MAGIC;
VSB_SETFLAG(s, VSB_DYNSTRUCT);
} else {
- bzero(s, sizeof *s);
+ memset(s, 0, sizeof *s);
s->s_flags = flags;
s->s_magic = VSB_MAGIC;
}
if (VSB_ISDYNAMIC(s))
SBFREE(s->s_buf);
isdyn = VSB_ISDYNSTRUCT(s);
- bzero(s, sizeof *s);
+ memset(s, 0, sizeof *s);
if (isdyn)
SBFREE(s);
}