diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-16 11:38:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-16 11:38:23 +0400 |
commit | d64fd168c96a1a5bee3aa5ffb847d7612059c993 (patch) | |
tree | 0fb6c0b46a18e9521bd2693b466b2d6a82ba4daa /source/blender/imbuf/intern/metadata.c | |
parent | e6ddad51463ad4634e6c2bd89b7733637572b629 (diff) |
style cleanup: imbuf
Diffstat (limited to 'source/blender/imbuf/intern/metadata.c')
-rw-r--r-- | source/blender/imbuf/intern/metadata.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/imbuf/intern/metadata.c b/source/blender/imbuf/intern/metadata.c index 0da7358b55b..a7caae73679 100644 --- a/source/blender/imbuf/intern/metadata.c +++ b/source/blender/imbuf/intern/metadata.c @@ -43,7 +43,7 @@ -void IMB_metadata_free(struct ImBuf* img) +void IMB_metadata_free(struct ImBuf *img) { ImMetaData *info; @@ -54,7 +54,7 @@ void IMB_metadata_free(struct ImBuf* img) } info = img->metadata; while (info) { - ImMetaData* next = info->next; + ImMetaData *next = info->next; MEM_freeN(info->key); MEM_freeN(info->value); MEM_freeN(info); @@ -62,7 +62,7 @@ void IMB_metadata_free(struct ImBuf* img) } } -int IMB_metadata_get_field(struct ImBuf* img, const char* key, char* field, int len) +int IMB_metadata_get_field(struct ImBuf *img, const char *key, char *field, int len) { ImMetaData *info; int retval = 0; @@ -84,7 +84,7 @@ int IMB_metadata_get_field(struct ImBuf* img, const char* key, char* field, int return retval; } -int IMB_metadata_add_field(struct ImBuf* img, const char* key, const char* value) +int IMB_metadata_add_field(struct ImBuf *img, const char *key, const char *value) { ImMetaData *info; ImMetaData *last; @@ -121,7 +121,7 @@ int IMB_metadata_del_field(struct ImBuf *img, const char *key) p = img->metadata; p1 = NULL; while (p) { - if (!strcmp (key, p->key)) { + if (!strcmp(key, p->key)) { if (p1) p1->next = p->next; else @@ -146,18 +146,18 @@ int IMB_metadata_change_field(struct ImBuf *img, const char *key, const char *fi return (0); if (!img->metadata) - return (IMB_metadata_add_field (img, key, field)); + return (IMB_metadata_add_field(img, key, field)); p = img->metadata; while (p) { - if (!strcmp (key, p->key)) { - MEM_freeN (p->value); - p->value = BLI_strdup (field); + if (!strcmp(key, p->key)) { + MEM_freeN(p->value); + p->value = BLI_strdup(field); return (1); } p = p->next; } - return (IMB_metadata_add_field (img, key, field)); + return (IMB_metadata_add_field(img, key, field)); } |