diff options
author | Bert Münnich <ber.t@gmx.com> | 2013-02-08 22:05:31 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2013-02-08 22:05:31 +0100 |
commit | 08ae25da225d22a874b371d018e1942feef8a74e (patch) | |
tree | 935256db81ccab2d2f56144e543bf0b5b9569ae2 /exif.c | |
parent | 6d3bbc6d5e8c9361dc49c51c1fa7268f042fa3b7 (diff) | |
download | nsxiv-08ae25da225d22a874b371d018e1942feef8a74e.tar.zst |
Refactored function definitions to use dangling brace
Diffstat (limited to 'exif.c')
-rw-r--r-- | exif.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -26,7 +26,8 @@ #include "exif.h" #include "util.h" -ssize_t s_read(int fd, const char *fn, void *buf, size_t n) { +ssize_t s_read(int fd, const char *fn, void *buf, size_t n) +{ ssize_t ret; ret = read(fd, buf, n); @@ -38,7 +39,8 @@ ssize_t s_read(int fd, const char *fn, void *buf, size_t n) { } } -unsigned short btous(unsigned char *buf, byteorder_t order) { +unsigned short btous(unsigned char *buf, byteorder_t order) +{ if (buf == NULL) return 0; if (order == BO_BIG_ENDIAN) @@ -47,7 +49,8 @@ unsigned short btous(unsigned char *buf, byteorder_t order) { return buf[1] << 8 | buf[0]; } -unsigned int btoui(unsigned char *buf, byteorder_t order) { +unsigned int btoui(unsigned char *buf, byteorder_t order) +{ if (buf == NULL) return 0; if (order == BO_BIG_ENDIAN) @@ -56,7 +59,8 @@ unsigned int btoui(unsigned char *buf, byteorder_t order) { return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0]; } -int exif_orientation(const fileinfo_t *file) { +int exif_orientation(const fileinfo_t *file) +{ int fd; unsigned char data[EXIF_MAX_LEN]; byteorder_t order = BO_BIG_ENDIAN; |