X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=lib%2Futils.h;fp=lib%2Futils.h;h=c6fb18076e5078cdd27659372a3fdfa4178d960c;hp=a94548fea95889208ab01f6273c56cd171eea061;hb=a227843b739d279b63adcf3736ebb03d856080c4;hpb=5dde6461a321ee47b06e33f8203f2acf00a31a51 diff --git a/lib/utils.h b/lib/utils.h index a94548fe..c6fb1807 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -21,20 +21,6 @@ #ifndef __TINC_UTILS_H__ #define __TINC_UTILS_H__ -#ifdef ENABLE_TRACING -extern volatile int cp_line[]; -extern volatile char *cp_file[]; -extern volatile int cp_index; -extern void cp_trace(void); - -#define cp() { cp_line[cp_index] = __LINE__; cp_file[cp_index] = __FILE__; cp_index++; cp_index %= 16; } -#define ecp() { fprintf(stderr, "Explicit checkpoint in %s line %d\n", __FILE__, __LINE__); } -#else -#define cp() -#define ecp() -#define cp_trace() -#endif - extern void hex2bin(char *src, char *dst, int length); extern void bin2hex(char *src, char *dst, int length);