Add new function nmem_strsplitx.
[yaz-moved-to-github.git] / src / json.c
index b844b51..58a6690 100644 (file)
@@ -1,12 +1,14 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
  * See the file LICENSE for details.
  */
-
 /**
  * \file json.c
  * \brief JSON encoding/decoding
  */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <yaz/json.h>
 
@@ -497,7 +499,7 @@ static void wrbuf_json_write(WRBUF b, const char *cp, size_t sz)
 
 void wrbuf_json_puts(WRBUF b, const char *str)
 {
-    return wrbuf_json_write(b, str, strlen(str));
+    wrbuf_json_write(b, str, strlen(str));
 }
 
 void json_write_wrbuf(struct json_node *node, WRBUF result)