Remove old hash.c code

This commit is contained in:
Pali Rohár committed 2012-08-09 19:52:22 +02:00
1 parent b2883167d5
commit 6e710dcac9
6 files changed
+7 -99

No files matched your search

+3 -2
View File
@@ -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;