diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-27 08:26:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-27 08:26:11 +0000 |
commit | 5a0f8634e4ed2c22078afd5c992a17992c7b970f (patch) | |
tree | d658e6550cabb9c79fe68a0bfa735ac7f97a6ca1 /main.c | |
parent | 71e1452424a16607e6c6f34c9e2ade17e73775a9 (diff) | |
download | mandoc-5a0f8634e4ed2c22078afd5c992a17992c7b970f.tar.gz mandoc-5a0f8634e4ed2c22078afd5c992a17992c7b970f.tar.zst mandoc-5a0f8634e4ed2c22078afd5c992a17992c7b970f.zip |
bzero() -> memset() (noted by Joerg Sonnenberger).
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.50 2009/10/26 15:44:51 kristaps Exp $ */ +/* $Id: main.c,v 1.51 2009/10/27 08:26:11 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -119,7 +119,7 @@ main(int argc, char *argv[]) struct buf ln, blk; struct curparse curp; - bzero(&curp, sizeof(struct curparse)); + memset(&curp, 0, sizeof(struct curparse)); curp.inttype = INTT_AUTO; curp.outtype = OUTT_ASCII; @@ -158,8 +158,8 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - bzero(&ln, sizeof(struct buf)); - bzero(&blk, sizeof(struct buf)); + memset(&ln, 0, sizeof(struct buf)); + memset(&blk, 0, sizeof(struct buf)); rc = 1; |