From 796eba4c8195f64c7e3f6943d34e0876cbbfd2ff Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 26 Jul 2020 15:41:54 -0400 Subject: md5sum: clean up whitespace Change-Id: I56781a8db29ac53df582dcc2faf6e5713ddcf186 --- apps/plugins/md5sum.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/plugins/md5sum.c b/apps/plugins/md5sum.c index b929d8f061..7f1e6a4087 100644 --- a/apps/plugins/md5sum.c +++ b/apps/plugins/md5sum.c @@ -42,11 +42,11 @@ static int hash( char *string, const char *path ) while( !quit && ( len = rb->read( in, buffer, sizeof(buffer) ) ) > 0 ) { AddMD5( &md5, buffer, len ); - + if( rb->get_action(CONTEXT_STD, TIMEOUT_NOBLOCK) == ACTION_STD_CANCEL ) quit = true; } - + EndMD5( &md5 ); psz_md5_hash( string, &md5 ); @@ -66,10 +66,10 @@ static void hash_file( int out, const char *path ) done++; rb->splashf( 0, "%d / %d : %s", done, count, path ); status = hash( string, path ); - + if( quit ) return; - + if( status ) rb->write( out, "error", 5 ); else @@ -77,7 +77,7 @@ static void hash_file( int out, const char *path ) rb->write( out, " ", 2 ); rb->write( out, path, rb->strlen( path ) ); rb->write( out, "\n", 1 ); - + rb->yield(); } } @@ -95,7 +95,7 @@ static void hash_dir( int out, const char *path ) char childpath[MAX_PATH]; rb->snprintf( childpath, MAX_PATH, "%s/%s", rb->strcmp( path, "/" ) ? path : "", entry->d_name ); - + struct dirinfo info = rb->dir_get_info(dir, entry); if (info.attribute & ATTR_DIRECTORY) { -- cgit