diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-08-09 19:52:22 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-08-09 19:52:22 +0200 |
commit | 6e710dcac95a402acb2f07db549a12f526b700a1 (patch) | |
tree | 79f1b1d8e8b2228610373bcf18c97d9c332c2745 /src/flash.c | |
parent | b2883167d5db98d279687ea009950569568316a3 (diff) | |
download | 0xFFFF-6e710dcac95a402acb2f07db549a12f526b700a1.tar.bz2 |
Remove old hash.c code
Diffstat (limited to 'src/flash.c')
-rw-r--r-- | src/flash.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <stdio.h> #include <string.h> @@ -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<size; off += BSIZE) { char buf[BSIZE]; int bread, bsize = size-off; |