Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ftpd Removed unnecessary memset(3) call
details: https://anonhg.NetBSD.org/src/rev/3fceabd7d4df
branches: trunk
changeset: 339785:3fceabd7d4df
user: shm <shm%NetBSD.org@localhost>
date: Sun Aug 09 20:34:24 2015 +0000
description:
Removed unnecessary memset(3) call
diffstat:
libexec/ftpd/logwtmp.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 2ba728c31728 -r 3fceabd7d4df libexec/ftpd/logwtmp.c
--- a/libexec/ftpd/logwtmp.c Sun Aug 09 13:49:18 2015 +0000
+++ b/libexec/ftpd/logwtmp.c Sun Aug 09 20:34:24 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: logwtmp.c,v 1.26 2015/08/09 12:17:30 shm Exp $ */
+/* $NetBSD: logwtmp.c,v 1.27 2015/08/09 20:34:24 shm Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -36,7 +36,7 @@
#if 0
static char sccsid[] = "@(#)logwtmp.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: logwtmp.c,v 1.26 2015/08/09 12:17:30 shm Exp $");
+__RCSID("$NetBSD: logwtmp.c,v 1.27 2015/08/09 20:34:24 shm Exp $");
#endif
#endif /* not lint */
@@ -130,8 +130,6 @@
(void)strncpy(ut.ut_host, host, sizeof(ut.ut_host));
if (haddr)
(void)memcpy(&ut.ut_ss, &haddr->si_su, haddr->su_len);
- else
- (void)memset(&ut.ut_ss, 0, sizeof(ut.ut_ss));
ut.ut_type = utx_type;
if (WIFEXITED(status))
ut.ut_exit.e_exit = (uint16_t)WEXITSTATUS(status);
Home |
Main Index |
Thread Index |
Old Index