From 08ae25da225d22a874b371d018e1942feef8a74e Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Fri, 8 Feb 2013 22:05:31 +0100 Subject: Refactored function definitions to use dangling brace --- exif.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'exif.c') diff --git a/exif.c b/exif.c index 0a67311..ae2c2d1 100644 --- a/exif.c +++ b/exif.c @@ -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; -- cgit v1.2.3