Lee Duncan | 20 Jun 2012 18:48
Picon

fix compile error if OFFLOAD_BOOT_SUPPORT defined

If OFFLOAD_BOOT_SUPPORT is defined, usr/iface.c gets a compile error,
fixed by this patch.

Signed-off-by: Lee Duncan <leeman.duncan@...>
-- 
diff --git a/usr/iface.c b/usr/iface.c
index 3a9582e..b7e9760 100644
--- a/usr/iface.c
+++ b/usr/iface.c
 <at>  <at>  -896,6 +896,9  <at>  <at>  int iface_setup_from_boot_context(struct iface_rec *iface,
 	struct iscsi_transport *t = NULL;
 	char transport_name[ISCSI_TRANSPORT_NAME_MAXLEN];
 	uint32_t hostno;
+#ifdef OFFLOAD_BOOT_SUPPORTED
+	int rc;
+#endif

 	if (strlen(context->initiatorname))
 		strlcpy(iface->iname, context->initiatorname,

--

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To post to this group, send email to open-iscsi@...
To unsubscribe from this group, send email to open-iscsi+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.


Gmane