summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2020-07-26 15:41:54 -0400
committerFranklin Wei <franklin@rockbox.org>2020-07-26 15:41:54 -0400
commit796eba4c8195f64c7e3f6943d34e0876cbbfd2ff (patch)
treec7b7b7b80107c3e1a13ea5a7a11cce62c6f5b03d
parent2eb7ce475a8338171b6d3df5f2789d527b87f746 (diff)
downloadrockbox-796eba4.tar.gz
rockbox-796eba4.zip
md5sum: clean up whitespace
Change-Id: I56781a8db29ac53df582dcc2faf6e5713ddcf186
-rw-r--r--apps/plugins/md5sum.c12
1 files changed, 6 insertions, 6 deletions
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)
{