summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jplist.c4
-rw-r--r--src/oplist.c4
-rw-r--r--src/out-default.c8
-rw-r--r--src/out-limd.c8
-rw-r--r--src/out-plutil.c4
-rw-r--r--src/xplist.c8
6 files changed, 18 insertions, 18 deletions
diff --git a/src/jplist.c b/src/jplist.c
index 9263b36..ca4743c 100644
--- a/src/jplist.c
+++ b/src/jplist.c
@@ -143,9 +143,9 @@ static int node_to_json(node_t node, bytearray_t **outbuf, uint32_t depth, int p
143 case PLIST_INT: 143 case PLIST_INT:
144 val = (char*)malloc(64); 144 val = (char*)malloc(64);
145 if (node_data->length == 16) { 145 if (node_data->length == 16) {
146 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 146 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
147 } else { 147 } else {
148 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 148 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
149 } 149 }
150 str_buf_append(*outbuf, val, val_len); 150 str_buf_append(*outbuf, val, val_len);
151 free(val); 151 free(val);
diff --git a/src/oplist.c b/src/oplist.c
index 74c4e0a..b2395a4 100644
--- a/src/oplist.c
+++ b/src/oplist.c
@@ -158,9 +158,9 @@ static int node_to_openstep(node_t node, bytearray_t **outbuf, uint32_t depth, i
158 case PLIST_INT: 158 case PLIST_INT:
159 val = (char*)malloc(64); 159 val = (char*)malloc(64);
160 if (node_data->length == 16) { 160 if (node_data->length == 16) {
161 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 161 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
162 } else { 162 } else {
163 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 163 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
164 } 164 }
165 str_buf_append(*outbuf, val, val_len); 165 str_buf_append(*outbuf, val, val_len);
166 free(val); 166 free(val);
diff --git a/src/out-default.c b/src/out-default.c
index 5747097..3ee9b3a 100644
--- a/src/out-default.c
+++ b/src/out-default.c
@@ -98,9 +98,9 @@ static int node_to_string(node_t node, bytearray_t **outbuf, uint32_t depth, uin
98 case PLIST_INT: 98 case PLIST_INT:
99 val = (char*)malloc(64); 99 val = (char*)malloc(64);
100 if (node_data->length == 16) { 100 if (node_data->length == 16) {
101 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 101 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
102 } else { 102 } else {
103 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 103 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
104 } 104 }
105 str_buf_append(*outbuf, val, val_len); 105 str_buf_append(*outbuf, val, val_len);
106 free(val); 106 free(val);
@@ -257,9 +257,9 @@ static int node_to_string(node_t node, bytearray_t **outbuf, uint32_t depth, uin
257 str_buf_append(*outbuf, "CF$UID:", 7); 257 str_buf_append(*outbuf, "CF$UID:", 7);
258 val = (char*)malloc(64); 258 val = (char*)malloc(64);
259 if (node_data->length == 16) { 259 if (node_data->length == 16) {
260 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 260 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
261 } else { 261 } else {
262 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 262 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
263 } 263 }
264 str_buf_append(*outbuf, val, val_len); 264 str_buf_append(*outbuf, val, val_len);
265 free(val); 265 free(val);
diff --git a/src/out-limd.c b/src/out-limd.c
index 0ff9a65..433ae06 100644
--- a/src/out-limd.c
+++ b/src/out-limd.c
@@ -101,9 +101,9 @@ static int node_to_string(node_t node, bytearray_t **outbuf, uint32_t depth, uin
101 case PLIST_INT: 101 case PLIST_INT:
102 val = (char*)malloc(64); 102 val = (char*)malloc(64);
103 if (node_data->length == 16) { 103 if (node_data->length == 16) {
104 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 104 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
105 } else { 105 } else {
106 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 106 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
107 } 107 }
108 str_buf_append(*outbuf, val, val_len); 108 str_buf_append(*outbuf, val, val_len);
109 free(val); 109 free(val);
@@ -225,9 +225,9 @@ static int node_to_string(node_t node, bytearray_t **outbuf, uint32_t depth, uin
225 str_buf_append(*outbuf, "CF$UID:", 7); 225 str_buf_append(*outbuf, "CF$UID:", 7);
226 val = (char*)malloc(64); 226 val = (char*)malloc(64);
227 if (node_data->length == 16) { 227 if (node_data->length == 16) {
228 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 228 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
229 } else { 229 } else {
230 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 230 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
231 } 231 }
232 str_buf_append(*outbuf, val, val_len); 232 str_buf_append(*outbuf, val, val_len);
233 free(val); 233 free(val);
diff --git a/src/out-plutil.c b/src/out-plutil.c
index fbed98b..ed71d8f 100644
--- a/src/out-plutil.c
+++ b/src/out-plutil.c
@@ -98,9 +98,9 @@ static int node_to_string(node_t node, bytearray_t **outbuf, uint32_t depth)
98 case PLIST_INT: 98 case PLIST_INT:
99 val = (char*)malloc(64); 99 val = (char*)malloc(64);
100 if (node_data->length == 16) { 100 if (node_data->length == 16) {
101 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 101 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
102 } else { 102 } else {
103 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 103 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
104 } 104 }
105 str_buf_append(*outbuf, val, val_len); 105 str_buf_append(*outbuf, val, val_len);
106 free(val); 106 free(val);
diff --git a/src/xplist.c b/src/xplist.c
index 481da5d..4833a92 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -173,9 +173,9 @@ static int node_to_xml(node_t node, bytearray_t **outbuf, uint32_t depth)
173 tag_len = XPLIST_INT_LEN; 173 tag_len = XPLIST_INT_LEN;
174 val = (char*)malloc(64); 174 val = (char*)malloc(64);
175 if (node_data->length == 16) { 175 if (node_data->length == 16) {
176 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 176 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
177 } else { 177 } else {
178 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 178 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
179 } 179 }
180 break; 180 break;
181 181
@@ -237,9 +237,9 @@ static int node_to_xml(node_t node, bytearray_t **outbuf, uint32_t depth)
237 tag_len = XPLIST_DICT_LEN; 237 tag_len = XPLIST_DICT_LEN;
238 val = (char*)malloc(64); 238 val = (char*)malloc(64);
239 if (node_data->length == 16) { 239 if (node_data->length == 16) {
240 val_len = snprintf(val, 64, "%"PRIu64, node_data->intval); 240 val_len = snprintf(val, 64, "%" PRIu64, node_data->intval);
241 } else { 241 } else {
242 val_len = snprintf(val, 64, "%"PRIi64, node_data->intval); 242 val_len = snprintf(val, 64, "%" PRIi64, node_data->intval);
243 } 243 }
244 break; 244 break;
245 case PLIST_NULL: 245 case PLIST_NULL: