remove original commented code

This commit is contained in:
Gabriele Gristina
2019-06-22 15:00:50 +02:00
parent 05dfa7f3aa
commit b2529af172
72 changed files with 0 additions and 433 deletions
-4
View File
@@ -158,20 +158,16 @@ int module_hash_binary_parse (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE
{
// note: if module_hash_binary_parse exists, then module_hash_decode is not called
// FILE *fp = fopen (hashes->hashfile, "rb");
fp_tmp_t fp_t;
// if (fp == NULL) return (PARSER_HASH_FILE);
if (hc_fopen (&fp_t, hashes->hashfile, "rb") == false) return (PARSER_HASH_FILE);
#define TC_HEADER_SIZE 512
char *in = (char *) hcmalloc (TC_HEADER_SIZE);
// const size_t n = hc_fread (in, 1, TC_HEADER_SIZE, fp);
const size_t n = hc_fread (in, 1, TC_HEADER_SIZE, &fp_t);
// fclose (fp);
hc_fclose (&fp_t);
if (n != TC_HEADER_SIZE) return (PARSER_TC_FILE_SIZE);