summaryrefslogtreecommitdiff
path: root/src/htsserver.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-23 19:40:47 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-23 19:40:47 +0000
commit0817df2fb67e3a2be95b311c4c2d42d2a1e1bc41 (patch)
tree25123b396b822a7c2219eb3456eef3dfd9a6462a /src/htsserver.h
parentf42a5fa5dd4b5b8b91b66e7b47602be12aa298b2 (diff)
Trashed historical link heap hashtable, and replaced it by cleaner code using new cuckoo hashtables
I can not believe I kept such a terible and frightening code for such a long time, geez.
Diffstat (limited to 'src/htsserver.h')
-rw-r--r--src/htsserver.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/htsserver.h b/src/htsserver.h
index 85d0a9f..03eae71 100644
--- a/src/htsserver.h
+++ b/src/htsserver.h
@@ -36,6 +36,7 @@ Please visit our Website: http://www.httrack.com
#ifndef HTS_SERVER_DEFH
#define HTS_SERVER_DEFH
+#include <sys/stat.h>
#include "htsnet.h"
/* String */
@@ -223,7 +224,7 @@ static int linput(FILE * fp, char *s, int max) {
}
static int linput_trim(FILE * fp, char *s, int max) {
int rlen = 0;
- char *ls = (char *) malloct(max + 2);
+ char *ls = (char *) malloc(max + 2);
s[0] = '\0';
if (ls) {
@@ -247,7 +248,7 @@ static int linput_trim(FILE * fp, char *s, int max) {
}
}
//
- freet(ls);
+ free(ls);
}
return rlen;
}