[PATCH 1/1] Fix ia64 compilation
Mike Christie
michaelc
Thu Jul 12 22:47:14 CEST 2007
Some ia64 compilers do not like the set_scn_flag macro use
inside the htonl call. This just seperates the two.
Signed-off-by: Mike Christie <michaelc at cs.wisc.edu>
---
usr/iscsi/isns.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/usr/iscsi/isns.c b/usr/iscsi/isns.c
index c3538d9..3277265 100644
--- a/usr/iscsi/isns.c
+++ b/usr/iscsi/isns.c
@@ -267,7 +267,8 @@ static int isns_scn_register(void)
scn_flags = ISNS_SCN_FLAG_INITIATOR | ISNS_SCN_FLAG_OBJECT_REMOVE |
ISNS_SCN_FLAG_OBJECT_ADDED | ISNS_SCN_FLAG_OBJECT_UPDATED;
- scn_flags = htonl(set_scn_flag(scn_flags));
+ set_scn_flag(scn_flags);
+ scn_flags = htonl(scn_flags);
length += isns_tlv_set(&tlv, ISNS_ATTR_ISCSI_SCN_BITMAP,
sizeof(scn_flags), &scn_flags);
--
1.5.1.2
--------------060603050906010805070708--
More information about the stgt
mailing list