diff options
| author | 2023-05-13 20:04:19 +0200 | |
|---|---|---|
| committer | 2023-05-13 20:04:19 +0200 | |
| commit | af51970e6b1b9d9e6c8a925b040420e465bc2326 (patch) | |
| tree | c8e3537703494e7d6a24aa7e4c30d2bf0c54dde7 /src/xplist.c | |
| parent | 91c0aa8fa82d3fb42c64b0e46bfa861cada5e47d (diff) | |
| download | libplist-af51970e6b1b9d9e6c8a925b040420e465bc2326.tar.gz libplist-af51970e6b1b9d9e6c8a925b040420e465bc2326.tar.bz2 | |
Add space before PRI* macros, some compilers do not like it
Diffstat (limited to 'src/xplist.c')
| -rw-r--r-- | src/xplist.c | 8 |
1 files changed, 4 insertions, 4 deletions
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: |
