diff options
author | Omar Polo <op@omarpolo.com> | 2021-09-24 08:08:49 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-09-24 08:08:49 +0000 |
commit | df0c2926ccb753d07a3f20f3626a20f7079453ee (patch) | |
tree | 3dc027b6c94d2d9a3c310bce4ce25f791bcc1260 /iri.c | |
parent | a91ad7f2ffac3f1cec0c6c42e780ab5efc92ba5c (diff) |
use memset(3) rather than bzero(3)
There's no difference, but bzero(3) says
STANDARDS
The bzero() function conforms to the X/Open System Interfaces option of
the IEEE Std 1003.1-2004 (“POSIX.1”) specification. It was removed from
the standard in IEEE Std 1003.1-2008 (“POSIX.1”), which recommends using
memset(3) instead.
so here we are.
Diffstat (limited to 'iri.c')
-rw-r--r-- | iri.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -392,7 +392,7 @@ parse_iri(char *iri, struct iri *ret, const char **err_ret) char *end; struct parser p = {iri, ret, NULL}; - bzero(ret, sizeof(*ret)); + memset(ret, 0, sizeof(*ret)); /* initialize optional stuff to the empty string */ end = iri + strlen(iri); |