summaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-27 08:26:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-27 08:26:11 +0000
commit5a0f8634e4ed2c22078afd5c992a17992c7b970f (patch)
treed658e6550cabb9c79fe68a0bfa735ac7f97a6ca1 /main.c
parent71e1452424a16607e6c6f34c9e2ade17e73775a9 (diff)
downloadmandoc-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 128f3111..43e8f511 100644
--- a/main.c
+++ b/main.c
@@ -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;