]> git.ozlabs.org Git - ccan/blobdiff - ccan/iscsi/discovery.c
tdb2: fix tdb_summary reports
[ccan] / ccan / iscsi / discovery.c
index 3f297554a3c7e49648150a373b0b7bf3cfa555c9..7b2ad2315264ef43ef4caa6efb11ca6e4d43d438 100644 (file)
@@ -15,7 +15,7 @@
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
 
-#define _GNU_SOURCE
+#include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -26,7 +26,7 @@
 int iscsi_discovery_async(struct iscsi_context *iscsi, iscsi_command_cb cb, void *private_data)
 {
        struct iscsi_pdu *pdu;
-       char *str;
+       const char *str;
 
        if (iscsi == NULL) {
                printf("trying to send text on NULL context\n");
@@ -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;