]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Issue #418: Fix docs for json_util_from_fd and json_util_from_file to say that they...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Fri, 15 Jun 2018 02:24:15 +0000 (22:24 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Fri, 15 Jun 2018 02:24:45 +0000 (22:24 -0400)
json_util.h

index e065f60c66e6c9732465ce677db72ac93c787304..3e1b29478bd875b1d5475c25bd21aa3fc72ef6a1 100644 (file)
@@ -38,7 +38,7 @@ extern "C" {
  * Read the full contents of the given file, then convert it to a
  * json_object using json_tokener_parse().
  *
- * Returns -1 if something fails.  See json_util_get_last_err() for details.
+ * Returns NULL on failure.  See json_util_get_last_err() for details.
  */
 extern struct json_object* json_object_from_file(const char *filename);
 
@@ -50,7 +50,7 @@ extern struct json_object* json_object_from_file(const char *filename);
  * Note, that the fd must be readable at the actual position, i.e.
  * use lseek(fd, 0, SEEK_SET) before.
  *
- * Returns -1 if something fails.  See json_util_get_last_err() for details.
+ * Returns NULL on failure.  See json_util_get_last_err() for details.
  */
 extern struct json_object* json_object_from_fd(int fd);