From d53eec956bd14db26459fe95c8a21504b6320a0c Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Fri, 31 May 2013 04:00:42 +0000 Subject: [PATCH] Make it compile as C++ code again. --- diag.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/diag.c b/diag.c index fac0042..83c2b93 100644 --- a/diag.c +++ b/diag.c @@ -29,7 +29,6 @@ typedef struct { char **values; /* stream of values for tokens */ } diagnostic_data_t; - /* map> */ static ht diagnostic_table = NULL; @@ -50,7 +49,6 @@ static void diagnostic_line(const char *file, size_t line, diagnostic_data_t *** FILE *handle = fs_file_open(file, "r"); size_t size = 0; size_t tok = 0; - /* * Now process all data line per line from the file, while inserting @@ -61,7 +59,7 @@ static void diagnostic_line(const char *file, size_t line, diagnostic_data_t *** * which will be stored alongside the hashtable. */ while (fs_file_getline(&next, &size, handle) != EOF) { - diagnostic_data_t *data = mem_a(sizeof(diagnostic_data_t)); + diagnostic_data_t *data = (diagnostic_data_t*)mem_a(sizeof(diagnostic_data_t)); data->tokens = NULL; data->values = NULL; -- 2.39.2