X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=ccan%2Fiscsi%2Fdiscovery.c;h=7b2ad2315264ef43ef4caa6efb11ca6e4d43d438;hb=4c1a5ebd8720c26e264c89f8256df02a93db683a;hp=581084e994f7820b14c34eaeeb5258d0a19eb80d;hpb=4531849366893a9a9f892e2fc67a2d48ac4f3bf5;p=ccan
diff --git a/ccan/iscsi/discovery.c b/ccan/iscsi/discovery.c
index 581084e9..7b2ad231 100644
--- a/ccan/iscsi/discovery.c
+++ b/ccan/iscsi/discovery.c
@@ -15,7 +15,7 @@
along with this program; if not, see .
*/
-#define _GNU_SOURCE
+#include "config.h"
#include
#include
#include
@@ -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");