aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2009-12-21 14:13:05 +0200
committerPetri Lehtinen <petri@digip.org>2009-12-21 14:13:05 +0200
commit6637b976edd508cc9413ce954fe4275eab8c2c69 (patch)
treeb19bd1e91ff52877bebb3954d0fd5fc66fb97e3a /src
parent2db2f2cfb6d48e74539454a93b58734fb0246b8b (diff)
parentf5202bedef766b68141e20bba3489b4a3aebaf3d (diff)
downloadjansson-6637b976edd508cc9413ce954fe4275eab8c2c69.zip
jansson-6637b976edd508cc9413ce954fe4275eab8c2c69.tar.gz
jansson-6637b976edd508cc9413ce954fe4275eab8c2c69.tar.bz2
Merge branch '1.1'
Diffstat (limited to 'src')
-rw-r--r--src/jansson.h6
-rw-r--r--src/value.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/jansson.h b/src/jansson.h
index 607dfb5..59e3eb5 100644
--- a/src/jansson.h
+++ b/src/jansson.h
@@ -123,9 +123,9 @@ int json_integer_value(const json_t *integer);
double json_real_value(const json_t *real);
double json_number_value(const json_t *json);
-int json_string_set(const json_t *string, const char *value);
-int json_integer_set(const json_t *integer, int value);
-int json_real_set(const json_t *real, double value);
+int json_string_set(json_t *string, const char *value);
+int json_integer_set(json_t *integer, int value);
+int json_real_set(json_t *real, double value);
/* loading, printing */
diff --git a/src/value.c b/src/value.c
index 6497f85..ccf9f06 100644
--- a/src/value.c
+++ b/src/value.c
@@ -508,7 +508,7 @@ const char *json_string_value(const json_t *json)
return json_to_string(json)->value;
}
-int json_string_set(const json_t *json, const char *value)
+int json_string_set(json_t *json, const char *value)
{
char *dup;
json_string_t *string;
@@ -555,7 +555,7 @@ int json_integer_value(const json_t *json)
return json_to_integer(json)->value;
}
-int json_integer_set(const json_t *json, int value)
+int json_integer_set(json_t *json, int value)
{
if(!json_is_integer(json))
return -1;
@@ -592,7 +592,7 @@ double json_real_value(const json_t *json)
return json_to_real(json)->value;
}
-int json_real_set(const json_t *json, double value)
+int json_real_set(json_t *json, double value)
{
if(!json_is_real(json))
return 0;