mirror of
https://github.com/nmap/nmap.git
synced 2026-02-14 17:36:33 +00:00
Added format attribute to __nsock_log_internal.
This allows log format strings to be checked at compile time.
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
|
||||
void __nsock_log_internal(nsock_pool nsp, nsock_loglevel_t loglevel,
|
||||
const char *file, int line, const char *func,
|
||||
const char *format, ...);
|
||||
const char *format, ...) __attribute__((format (printf, 6, 7)));
|
||||
|
||||
void nsock_stderr_logger(nsock_pool nsp, const struct nsock_log_rec *rec);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user