From c6656650204c77c72c358c8a24041e783c5e0227 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 13 Sep 2011 14:40:51 +1000 Subject: [PATCH] Formatting fixes --- liblrzip.c | 8 ++++---- liblrzip_demo.c | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/liblrzip.c b/liblrzip.c index a03ca72..9b50971 100644 --- a/liblrzip.c +++ b/liblrzip.c @@ -32,7 +32,7 @@ static FILE *fake_fmemopen(void *buf, size_t buflen, const char *mode) return NULL; } rewind(in); - return in; + return in; } #endif @@ -180,8 +180,8 @@ bool lrzip_compression_level_set(Lrzip *lr, unsigned int level) unsigned int lrzip_compression_level_get(Lrzip *lr) { - if (!lr) return 0; - return lr->control->compression_level; + if (!lr) return 0; + return lr->control->compression_level; } void lrzip_flags_set(Lrzip *lr, unsigned int flags) @@ -493,7 +493,7 @@ bool lrzip_run(Lrzip *lr) /* compute total time */ gettimeofday(&end_time, NULL); total_time = (end_time.tv_sec + (double)end_time.tv_usec / 1000000) - - (start_time.tv_sec + (double)start_time.tv_usec / 1000000); + (start_time.tv_sec + (double)start_time.tv_usec / 1000000); hours = (int)total_time / 3600; minutes = (int)(total_time / 60) % 60; seconds = total_time - hours * 3600 - minutes * 60; diff --git a/liblrzip_demo.c b/liblrzip_demo.c index f4a7af1..83d30c9 100644 --- a/liblrzip_demo.c +++ b/liblrzip_demo.c @@ -110,7 +110,8 @@ static void pass_cb(void *data __UNUSED__, char *pass_string, size_t pass_len) tcsetattr(fileno(stdin), 0, &termios_p); } -static void mode_check(Lrzip *lr, Lrzip_Mode mode) { +static void mode_check(Lrzip *lr, Lrzip_Mode mode) +{ Lrzip_Mode current = lrzip_mode_get(lr); if (current && (current != mode)) failure("Can only use one of -l, -b, -g, -z or -n\n"); @@ -320,7 +321,7 @@ int main(int argc, char *argv[]) if (get_hash) { const unsigned char *digest = lrzip_md5digest_get(lr); for (x = 0; x < 16; x++) - fprintf(stdout, "%02x", digest[x] & 0xFF); + fprintf(stdout, "%02x", digest[x] & 0xFF); } lrzip_free(lr); return 0;