aboutsummaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-11-24 19:13:00 +0100
committerChristian Grothoff <christian@grothoff.org>2019-11-24 19:13:00 +0100
commitd17a17ea785f91c18b5694eab3372c4e4564d95e (patch)
treea7ee983fb1c0fa5a9210938024357cd9498ee344 /src/json
parent5f38569fce2e77afeed58cbd3429c67bf8ab9109 (diff)
downloadgnunet-d17a17ea785f91c18b5694eab3372c4e4564d95e.tar.gz
gnunet-d17a17ea785f91c18b5694eab3372c4e4564d95e.zip
fix pointer indentation
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json_gnsrecord.c2
-rw-r--r--src/json/json_helper.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/json/json_gnsrecord.c b/src/json/json_gnsrecord.c
index 41af2b0a2..bfbdd96ee 100644
--- a/src/json/json_gnsrecord.c
+++ b/src/json/json_gnsrecord.c
@@ -108,7 +108,7 @@ parse_record (json_t *data, struct GNUNET_GNSRECORD_Data *rd)
108 } 108 }
109 if (GNUNET_OK != GNUNET_GNSRECORD_string_to_value (rd->record_type, 109 if (GNUNET_OK != GNUNET_GNSRECORD_string_to_value (rd->record_type,
110 value, 110 value,
111 (void**) &rd->data, 111 (void **) &rd->data,
112 &rd->data_size)) 112 &rd->data_size))
113 { 113 {
114 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Value invalid for record type\n"); 114 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Value invalid for record type\n");
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index c3ba9c555..a9b933762 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -152,7 +152,7 @@ parse_variable_data (void *cls,
152 GNUNET_free (data); 152 GNUNET_free (data);
153 return GNUNET_SYSERR; 153 return GNUNET_SYSERR;
154 } 154 }
155 *(void**) spec->ptr = data; 155 *(void **) spec->ptr = data;
156 *spec->size_ptr = size; 156 *spec->size_ptr = size;
157 return GNUNET_OK; 157 return GNUNET_OK;
158} 158}
@@ -171,7 +171,7 @@ clean_variable_data (void *cls,
171 if (0 != *spec->size_ptr) 171 if (0 != *spec->size_ptr)
172 { 172 {
173 GNUNET_free (*(void **) spec->ptr); 173 GNUNET_free (*(void **) spec->ptr);
174 *(void**) spec->ptr = NULL; 174 *(void **) spec->ptr = NULL;
175 *spec->size_ptr = 0; 175 *spec->size_ptr = 0;
176 } 176 }
177} 177}