From efc12d78f78de97e48487fc1c30dc8b17f31cba8 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Sun, 31 Jul 2016 21:36:40 +0000 Subject: [PATCH] indent(1): replace function call to bzero with memset. Reference: https://github.com/pstef/freebsd_indent/commit/7422f42f80099c69d34833d7106035dc09230235 Differential Revision: https://reviews.freebsd.org/D6966 (Partial) Submitted by: Piotr Stefaniak --- usr.bin/indent/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c index 408d453e5aa6..169f04e65128 100644 --- a/usr.bin/indent/io.c +++ b/usr.bin/indent/io.c @@ -629,7 +629,7 @@ parsefont(struct fstate *f, const char *s0) const char *s = s0; int sizedelta = 0; - bzero(f, sizeof *f); + memset(f, 0, sizeof(struct fstate)); while (*s) { if (isdigit(*s)) f->size = f->size * 10 + *s - '0';