Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/scsictl take sizeof actual symbol we are memsetting
details: https://anonhg.NetBSD.org/src/rev/6d68bb5cacba
branches: trunk
changeset: 783896:6d68bb5cacba
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sat Jan 12 02:50:09 2013 +0000
description:
take sizeof actual symbol we are memsetting
diffstat:
sbin/scsictl/scsictl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 263fffbd178e -r 6d68bb5cacba sbin/scsictl/scsictl.c
--- a/sbin/scsictl/scsictl.c Fri Jan 11 23:49:23 2013 +0000
+++ b/sbin/scsictl/scsictl.c Sat Jan 12 02:50:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsictl.c,v 1.35 2012/11/03 19:26:52 jakllsch Exp $ */
+/* $NetBSD: scsictl.c,v 1.36 2013/01/12 02:50:09 jakllsch Exp $ */
/*-
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: scsictl.c,v 1.35 2012/11/03 19:26:52 jakllsch Exp $");
+__RCSID("$NetBSD: scsictl.c,v 1.36 2013/01/12 02:50:09 jakllsch Exp $");
#endif
@@ -588,7 +588,7 @@
scsireq_t req;
struct scsi_test_unit_ready tcmd;
- memset(&tcmd, 0, sizeof(cmd));
+ memset(&tcmd, 0, sizeof(tcmd));
tcmd.opcode = SCSI_TEST_UNIT_READY;
memset(&req, 0, sizeof(req));
Home |
Main Index |
Thread Index |
Old Index