Module Name:    othersrc
Committed By:   agc
Date:           Sat Oct 22 05:53:03 UTC 2011

Modified Files:
        othersrc/external/bsd/iscsi/sbin/iscsid: iscsid_lists.c

Log Message:
make this compile with gcc 4.5


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
    othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_lists.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_lists.c
diff -u othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_lists.c:1.2 othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_lists.c:1.3
--- othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_lists.c:1.2	Tue Jul 26 05:51:58 2011
+++ othersrc/external/bsd/iscsi/sbin/iscsid/iscsid_lists.c	Sat Oct 22 05:53:02 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsid_lists.c,v 1.2 2011/07/26 05:51:58 agc Exp $	*/
+/*	$NetBSD: iscsid_lists.c,v 1.3 2011/10/22 05:53:02 agc Exp $	*/
 
 /*-
  * Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -474,7 +474,7 @@ search_list(iscsid_search_list_req_t * p
 		return;
 	}
 
-	*((iscsid_sym_id_t *) rsp->parameter) = elem->sid;
+	(void) memcpy(rsp->parameter, &elem->sid, sizeof(elem->sid));
 	if (par->list_kind == SESSION_LIST)
 		UNLOCK_SESSIONS;
 }

Reply via email to