diff options
author | Jonathan Beck | 2009-01-29 22:20:48 +0100 |
---|---|---|
committer | Jonathan Beck | 2009-01-29 22:20:48 +0100 |
commit | ff1fa73f33e9223e69cbb71e70b084e3482dce3f (patch) | |
tree | fdd756e97501a62f1229044e1fe6233447a0fb23 /src/bplist.c | |
parent | 7bb672f801c3a245b38535f5a33f9fffa88c683c (diff) | |
download | libplist-ff1fa73f33e9223e69cbb71e70b084e3482dce3f.tar.gz libplist-ff1fa73f33e9223e69cbb71e70b084e3482dce3f.tar.bz2 |
Fix indent.
Diffstat (limited to 'src/bplist.c')
-rw-r--r-- | src/bplist.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bplist.c b/src/bplist.c index 50840c2..6e00f39 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -343,7 +343,7 @@ static gpointer copy_plist_data(gconstpointer src, gpointer data) dstdata->strval = strdup(srcdata->strval); break; case PLIST_UNICODE: - dstdata->unicodeval = (gunichar2*) malloc(srcdata->length * sizeof(gunichar2)); + dstdata->unicodeval = (gunichar2 *) malloc(srcdata->length * sizeof(gunichar2)); memcpy(dstdata->unicodeval, srcdata->unicodeval, srcdata->length * sizeof(gunichar2)); break; case PLIST_DATA: @@ -542,7 +542,7 @@ static gboolean plist_data_compare(gconstpointer a, gconstpointer b) else return FALSE; case PLIST_UNICODE: - if (!memcmp(val_a->unicodeval, val_b->unicodeval,val_a->length)) + if (!memcmp(val_a->unicodeval, val_b->unicodeval, val_a->length)) return TRUE; else return FALSE; @@ -557,7 +557,7 @@ static gboolean plist_data_compare(gconstpointer a, gconstpointer b) return FALSE; break; case PLIST_DATE: - if (!memcmp(&(val_a->timeval), &(val_b->timeval),sizeof(GTimeVal))) + if (!memcmp(&(val_a->timeval), &(val_b->timeval), sizeof(GTimeVal))) return TRUE; else return FALSE; @@ -664,11 +664,11 @@ static void write_string(GByteArray * bplist, char *val) write_raw_data(bplist, BPLIST_STRING, (uint8_t *) val, size); } -static void write_unicode(GByteArray * bplist, gunichar2 *val, uint64_t size) +static void write_unicode(GByteArray * bplist, gunichar2 * val, uint64_t size) { uint64_t i = 0; uint64_t size2 = size * sizeof(gunichar2); - uint8_t* buff = (uint8_t*) malloc(size2); + uint8_t *buff = (uint8_t *) malloc(size2); memcpy(buff, val, size2); for (i = 0; i < size; i++) byte_convert(buff + i * sizeof(gunichar2), sizeof(gunichar2)); @@ -830,7 +830,7 @@ void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length) } //experimental pad to reflect apple's files - uint8_t pad[6] = {0, 0, 0, 0, 0, 0}; + uint8_t pad[6] = { 0, 0, 0, 0, 0, 0 }; g_byte_array_append(bplist_buff, pad, 6); //setup trailer |