aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-09-24 08:08:49 +0000
committerOmar Polo <op@omarpolo.com>2021-09-24 08:08:49 +0000
commitdf0c2926ccb753d07a3f20f3626a20f7079453ee (patch)
tree3dc027b6c94d2d9a3c310bce4ce25f791bcc1260 /iri.c
parenta91ad7f2ffac3f1cec0c6c42e780ab5efc92ba5c (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iri.c b/iri.c
index 8842eab..e00a500 100644
--- a/iri.c
+++ b/iri.c
@@ -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);