diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-06-21 20:21:10 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-06-21 20:21:10 +0000 |
commit | 89c290ebd976790593e88eb81d7b8b52cddf989b (patch) | |
tree | d80cc9d623489651e99a359f7bc7ef0e731f2ad9 | |
parent | d00eb5c64362033f7eb36b0426e8a01c628731e2 (diff) |
sync to 1.7.19: bzero(PTR, ...) is simpler than memset(PTR, 0, ...)
-rw-r--r-- | usr.bin/mandoc/mdoc_strings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_strings.c b/usr.bin/mandoc/mdoc_strings.c index 0c9ffc60b7b..de00025fb85 100644 --- a/usr.bin/mandoc/mdoc_strings.c +++ b/usr.bin/mandoc/mdoc_strings.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_strings.c,v 1.6 2009/06/19 07:20:19 schwarze Exp $ */ +/* $Id: mdoc_strings.c,v 1.7 2009/06/21 20:21:09 schwarze Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -201,7 +201,7 @@ mdoc_atotime(const char *p) struct tm tm; char *pp; - (void)memset(&tm, 0, sizeof(struct tm)); + bzero(&tm, sizeof(struct tm)); if (0 == strcmp(p, "$" "Mdocdate$")) return(time(NULL)); |