X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fjson.c;h=79231e004aaf4c4776971197534cf13b56a12ccc;hb=3252229521745ee6413d1a5357a6348d36f87622;hp=b844b512671d0f628d35de3c0867ac11c562f8a2;hpb=8fc5b2c281ffb8dcb97af9816aabbe04c37a8599;p=yaz-moved-to-github.git diff --git a/src/json.c b/src/json.c index b844b51..79231e0 100644 --- a/src/json.c +++ b/src/json.c @@ -2,11 +2,13 @@ * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ - /** * \file json.c * \brief JSON encoding/decoding */ +#if HAVE_CONFIG_H +#include +#endif #include @@ -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)