rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | LICENSE

commit d749d3136fb2b354ddf808d5ff28e18760fb2a25
parent b1e2e8b2062c840dde85c1b298484ab1a41601ed
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 17 Aug 2020 11:58:35 +0200

change bzero to memset

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
net.c | 2+-
parser.c | 2+-
test/nettest.c | 2+-
txtdb.c | 2+-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net.c b/net.c @@ -130,7 +130,7 @@ net_connecttcp(net_t *net) { struct addrinfo hints, *ai, *rp; - bzero(&hints, sizeof(hints)); + memset(&hints, 0, sizeof(hints)); /* * Anyone knowing a real check for IPv6, instead of failing * everything, should contact me. diff --git a/parser.c b/parser.c @@ -199,7 +199,7 @@ parser_parseimapstructinternal(parser_t *parser, llist_t *ret) char buf[1025], *dbuf, lc, cchar; int i, len, incomment; - bzero(buf, sizeof(buf)); + memset(buf, 0, sizeof(buf)); parsestructagain: i = 1; diff --git a/test/nettest.c b/test/nettest.c @@ -21,7 +21,7 @@ main(void) char buf[4097]; int len; - bzero(&buf, sizeof(buf)); + memset(&buf, 0, sizeof(buf)); printf("net_new tcps!www.facebook.com!https\n"); net = net_new("tcps!www.facebook.com!https"); diff --git a/txtdb.c b/txtdb.c @@ -100,7 +100,7 @@ txtdb_read(char *file) FILE *fp; char line[MAXLINESIZE], *key, *value, *p; - bzero(line, sizeof(line)); + memset(line, 0, sizeof(line)); fp = fopen(file, "r"); if (fp == NULL)