Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / ini-config / ini.cpp
index 1d967a49d0b0da6de531da8d37a7ba1c0d2b05cb..ec5a41119e87c17f66b47d3656909ed670c11ea4 100644 (file)
@@ -36,9 +36,9 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
-#include <common/common.h>
+#include <common/common.hpp>
 
-#include "ini.h"
+#include "ini.hpp"
 
 #if !INI_USE_STACK
 #include <stdlib.h>
@@ -109,7 +109,7 @@ int ini_parse_file(FILE* file, ini_entry_handler handler, void* user)
        int error = 0;
 
 #if !INI_USE_STACK
-       line = (char*)zmalloc(INI_MAX_LINE);
+       line = zmalloc<char>(INI_MAX_LINE);
        if (!line) {
                return -2;
        }
This page took 0.024295 seconds and 4 git commands to generate.