Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/nfsd Fix memset usage.
details: https://anonhg.NetBSD.org/src/rev/a720d53cbcb3
branches: trunk
changeset: 781007:a720d53cbcb3
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Aug 15 00:16:06 2012 +0000
description:
Fix memset usage.
diffstat:
usr.sbin/nfsd/nfsd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8cb4a8fbd65c -r a720d53cbcb3 usr.sbin/nfsd/nfsd.c
--- a/usr.sbin/nfsd/nfsd.c Tue Aug 14 22:31:43 2012 +0000
+++ b/usr.sbin/nfsd/nfsd.c Wed Aug 15 00:16:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsd.c,v 1.60 2012/08/14 08:23:30 christos Exp $ */
+/* $NetBSD: nfsd.c,v 1.61 2012/08/15 00:16:06 joerg Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
#else
-__RCSID("$NetBSD: nfsd.c,v 1.60 2012/08/14 08:23:30 christos Exp $");
+__RCSID("$NetBSD: nfsd.c,v 1.61 2012/08/15 00:16:06 joerg Exp $");
#endif
#endif /* not lint */
@@ -139,7 +139,7 @@
struct addrinfo hints;
int ecode;
- memset(cfg, 0, sizeof(cfg));
+ memset(cfg, 0, sizeof(*cfg));
memset(&hints, 0, sizeof hints);
hints.ai_flags = AI_PASSIVE;
hints.ai_family = cfg_family[t];
Home |
Main Index |
Thread Index |
Old Index