From 6e710dcac95a402acb2f07db549a12f526b700a1 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Thu, 9 Aug 2012 19:52:22 +0200 Subject: Remove old hash.c code --- src/flash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/flash.c') diff --git a/src/flash.c b/src/flash.c index 537dd82..e1f4f7b 100644 --- a/src/flash.c +++ b/src/flash.c @@ -18,7 +18,6 @@ #if HAVE_USB #include "main.h" -#include "hash.h" #include "hexdump.h" #include #include @@ -84,7 +83,7 @@ void flash_image(const char *filename, const char *piece, const char *device, co unsigned long long size, off; unsigned char bsize[4], tmp; unsigned char nolofiller[128]; - ushort hash = do_hash_file(filename, piece); + ushort hash = 0; //do_hash_file(filename, piece); if (piece == NULL) { //exit(1); @@ -152,6 +151,8 @@ void flash_image(const char *filename, const char *piece, const char *device, co printf("[=] Bulkwriting the %s piece...\n", piece); fflush(stdout); + #define BSIZE 0x20000 + for(off = 0; off