From dfff353cf081024f9e145629dd51ef08526bb54d Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Wed, 22 Jul 2026 14:54:42 -0400 Subject: basic download and hash with libcurl and libcrypto --- snag/src/util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'snag/src/util.h') diff --git a/snag/src/util.h b/snag/src/util.h index eca4e4d..1a05ab0 100644 --- a/snag/src/util.h +++ b/snag/src/util.h @@ -20,9 +20,9 @@ void* _emalloc(int line, const char* file, size_t size, char* alloc_reason); #endif -// functions for outputting and displaying text -#define printout(fmt, ...) fprintf(stdout, fmt, ##__VA_ARGS__) -#define print(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) +// functions for outputting and displaying text, log is used for nonroutine bad things +void printout(const char* format, ...) __attribute__((format(printf, 1, 2))); +void print(const char* format, ...) __attribute__((format(printf, 1, 2))); // string functions #define vastrcat(...) vastrcat_(0, __VA_ARGS__, NULL) -- cgit v1.2.3