X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fiscsi%2Flogin.c;h=1fdf35ca4601a3912b37d83f87efb0a6dde19766;hb=34eab93cc6fbd18967810ae984b52615c995b199;hp=5863d88331db4ffd2a46be54a241ca4922afac81;hpb=5d4a434d90373bc99e4bacc97eca5a4abddd700f;p=ccan diff --git a/ccan/iscsi/login.c b/ccan/iscsi/login.c index 5863d883..1fdf35ca 100644 --- a/ccan/iscsi/login.c +++ b/ccan/iscsi/login.c @@ -15,7 +15,7 @@ along with this program; if not, see . */ -#define _GNU_SOURCE +#include "config.h" #include #include #include @@ -205,7 +205,7 @@ int iscsi_process_login_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu int status; if (size < ISCSI_HEADER_SIZE) { - printf("dont have enough data to read status from login reply\n"); + printf("don't have enough data to read status from login reply\n"); return -1; } @@ -268,7 +268,7 @@ int iscsi_logout_async(struct iscsi_context *iscsi, iscsi_command_cb cb, void *p return 0; } -int iscsi_process_logout_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu, const unsigned char *hdr, int size UNNEEDED_ATTRIBUTE) +int iscsi_process_logout_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu, const unsigned char *hdr, int size UNUSED) { iscsi->is_loggedin = 0; pdu->callback(iscsi, ISCSI_STATUS_GOOD, NULL, pdu->private_data);