vendor/rlite/src/util.c in hirlite-0.0.2 vs vendor/rlite/src/util.c in hirlite-0.0.2.1
- old
+ new
@@ -1,11 +1,11 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
-#include "../deps/sha1.h"
-#ifdef DEBUG
+#include "sha1.h"
+#ifdef RL_DEBUG
#include <unistd.h>
#include <sys/stat.h>
#include <execinfo.h>
#include <valgrind/valgrind.h>
#endif
@@ -22,11 +22,11 @@
formatted[i * 2 + 1] = hex_lookup[(data[i] / 0x0F) & 0x0F];
}
return RL_OK;
}
-#ifdef DEBUG
+#ifdef RL_DEBUG
int test_mode = 0;
int failed = 0;
int expect_fail()
@@ -157,10 +157,10 @@
int sha1_cmp(void *v1, void *v2)
{
return memcmp(v1, v2, sizeof(unsigned char) * 20);
}
-#ifdef DEBUG
+#ifdef RL_DEBUG
int long_formatter(void *v2, char **formatted, int *size)
{
*formatted = rl_malloc(sizeof(char) * 22);
if (*formatted == NULL) {
return RL_OUT_OF_MEMORY;