mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-01-28 19:14:16 +01:00
Formatting fixes
This commit is contained in:
parent
9f5498b6d3
commit
c665665020
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue