X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fiscsi%2Fdiscovery.c;h=2f2952f50455783acf701d08d274449b70cdb52b;hb=8d8de08d9079f503256e1682dfa93bb22dcd4ad0;hp=05250429b4e8e6e652ea02a51a9196ae0f52ce2a;hpb=cb522f25cada0d3429c69d0fbaa5bd337a422cdd;p=ccan diff --git a/ccan/iscsi/discovery.c b/ccan/iscsi/discovery.c index 05250429..2f2952f5 100644 --- a/ccan/iscsi/discovery.c +++ b/ccan/iscsi/discovery.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 2010 by Ronnie Sahlberg This program is free software; you can redistribute it and/or modify @@ -15,7 +15,7 @@ along with this program; if not, see . */ -#define _GNU_SOURCE +#include "config.h" #include #include #include @@ -90,7 +90,7 @@ static void iscsi_free_discovery_addresses(struct iscsi_discovery_address *addre free(addresses); addresses = next; } -} +} int iscsi_process_text_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu, const unsigned char *hdr, int size) { @@ -121,7 +121,7 @@ int iscsi_process_text_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu, pdu->callback(iscsi, ISCSI_STATUS_ERROR, NULL, pdu->private_data); iscsi_free_discovery_addresses(targets); return -1; - } + } /* parse the strings */ if (!strncmp((char *)hdr, "TargetName=", 11)) { @@ -155,7 +155,7 @@ int iscsi_process_text_reply(struct iscsi_context *iscsi, struct iscsi_pdu *pdu, return -1; } } else { - printf("Dont know how to handle discovery string : %s\n", hdr); + printf("Don't know how to handle discovery string : %s\n", hdr); pdu->callback(iscsi, ISCSI_STATUS_ERROR, NULL, pdu->private_data); iscsi_free_discovery_addresses(targets); return -1;