Clean end-of-line output usage (not actually POSIX)
[hashcat.git] / include / common.h
index be7ea98..7bdef11 100644 (file)
@@ -48,6 +48,7 @@
 #include <sys/ioctl.h>
 #include <mach-o/dyld.h>
 #include <mach/mach.h>
+#include <limits.h>
 #endif
 
 typedef void *OCL_LIB;
@@ -118,13 +119,13 @@ typedef uint32_t uint; // we need to get rid of this sooner or later, for consis
  * functions
  */
 
-void log_out_nn (FILE *fp, const char *fmt, ...);
-void log_info_nn (const char *fmt, ...);
-void log_error_nn (const char *fmt, ...);
+int log_out_nn (FILE *fp, const char *fmt, ...);
+int log_info_nn (const char *fmt, ...);
+int log_error_nn (const char *fmt, ...);
 
-void log_out (FILE *fp, const char *fmt, ...);
-void log_info (const char *fmt, ...);
-void log_error (const char *fmt, ...);
+int log_out (FILE *fp, const char *fmt, ...);
+int log_info (const char *fmt, ...);
+int log_error (const char *fmt, ...);
 
 #define MIN(a,b) (((a) < (b)) ? (a) : (b))
 #define MAX(a,b) (((a) > (b)) ? (a) : (b))