diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-07-31 21:36:40 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-07-31 21:36:40 +0000 |
commit | efc12d78f78de97e48487fc1c30dc8b17f31cba8 (patch) | |
tree | 0c7af6cb784026a692139b521e1ada702c63baae /usr.bin | |
parent | f7adee231414489cd75f0b6fe35e0266b286cd4a (diff) | |
download | src-efc12d78f78de97e48487fc1c30dc8b17f31cba8.tar.gz src-efc12d78f78de97e48487fc1c30dc8b17f31cba8.zip |
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
Notes
Notes:
svn path=/head/; revision=303600
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/indent/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |