diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/md5sum.c | 12 |
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 ) | |||
42 | while( !quit && ( len = rb->read( in, buffer, sizeof(buffer) ) ) > 0 ) | 42 | while( !quit && ( len = rb->read( in, buffer, sizeof(buffer) ) ) > 0 ) |
43 | { | 43 | { |
44 | AddMD5( &md5, buffer, len ); | 44 | AddMD5( &md5, buffer, len ); |
45 | 45 | ||
46 | if( rb->get_action(CONTEXT_STD, TIMEOUT_NOBLOCK) == ACTION_STD_CANCEL ) | 46 | if( rb->get_action(CONTEXT_STD, TIMEOUT_NOBLOCK) == ACTION_STD_CANCEL ) |
47 | quit = true; | 47 | quit = true; |
48 | } | 48 | } |
49 | 49 | ||
50 | EndMD5( &md5 ); | 50 | EndMD5( &md5 ); |
51 | 51 | ||
52 | psz_md5_hash( string, &md5 ); | 52 | psz_md5_hash( string, &md5 ); |
@@ -66,10 +66,10 @@ static void hash_file( int out, const char *path ) | |||
66 | done++; | 66 | done++; |
67 | rb->splashf( 0, "%d / %d : %s", done, count, path ); | 67 | rb->splashf( 0, "%d / %d : %s", done, count, path ); |
68 | status = hash( string, path ); | 68 | status = hash( string, path ); |
69 | 69 | ||
70 | if( quit ) | 70 | if( quit ) |
71 | return; | 71 | return; |
72 | 72 | ||
73 | if( status ) | 73 | if( status ) |
74 | rb->write( out, "error", 5 ); | 74 | rb->write( out, "error", 5 ); |
75 | else | 75 | else |
@@ -77,7 +77,7 @@ static void hash_file( int out, const char *path ) | |||
77 | rb->write( out, " ", 2 ); | 77 | rb->write( out, " ", 2 ); |
78 | rb->write( out, path, rb->strlen( path ) ); | 78 | rb->write( out, path, rb->strlen( path ) ); |
79 | rb->write( out, "\n", 1 ); | 79 | rb->write( out, "\n", 1 ); |
80 | 80 | ||
81 | rb->yield(); | 81 | rb->yield(); |
82 | } | 82 | } |
83 | } | 83 | } |
@@ -95,7 +95,7 @@ static void hash_dir( int out, const char *path ) | |||
95 | char childpath[MAX_PATH]; | 95 | char childpath[MAX_PATH]; |
96 | rb->snprintf( childpath, MAX_PATH, "%s/%s", | 96 | rb->snprintf( childpath, MAX_PATH, "%s/%s", |
97 | rb->strcmp( path, "/" ) ? path : "", entry->d_name ); | 97 | rb->strcmp( path, "/" ) ? path : "", entry->d_name ); |
98 | 98 | ||
99 | struct dirinfo info = rb->dir_get_info(dir, entry); | 99 | struct dirinfo info = rb->dir_get_info(dir, entry); |
100 | if (info.attribute & ATTR_DIRECTORY) | 100 | if (info.attribute & ATTR_DIRECTORY) |
101 | { | 101 | { |