diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-01-04 00:37:11 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-01-04 00:37:11 +0100 |
commit | 3e1c06e74f790a3eaea6c70fcdf257dcb8bf0e18 (patch) | |
tree | ee915938e7b96b0dea8e87759e3ac2e65e4c8def /FICS/utils.h | |
parent | 6697f027c1510566e18ec5939abcccac9ae2bd4a (diff) |
Added usage of PRINTFLIKE()
Diffstat (limited to 'FICS/utils.h')
-rw-r--r-- | FICS/utils.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/FICS/utils.h b/FICS/utils.h index 01f3baf..ecc147e 100644 --- a/FICS/utils.h +++ b/FICS/utils.h @@ -31,6 +31,7 @@ #include <stdio.h> +#include "common.h" /* PRINTFLIKE() */ #include "multicol.h" #define MAX_WORD_SIZE 1024 @@ -83,18 +84,19 @@ extern int mail_file_to_address(char *, char *, char *); extern int mail_file_to_user(int, char *, char *); extern int mail_string_to_address(char *, char *, char *); extern int mail_string_to_user(int, char *, char *); -extern int pcommand(int, char *, ...); +extern int pcommand(int, char *, ...) PRINTFLIKE(2); extern int pmore_file(int); -extern int pprintf(int, char *, ...); -extern int pprintf_highlight(int, char *, ...); -extern int pprintf_noformat(int, char *, ...); -extern int pprintf_prompt(int, char *, ...); +extern int pprintf(int, char *, ...) PRINTFLIKE(2); +extern int pprintf_highlight(int, char *, ...) PRINTFLIKE(2); +extern int pprintf_noformat(int, char *, ...) PRINTFLIKE(2); +extern int pprintf_prompt(int, char *, ...) PRINTFLIKE(2); extern int printablestring(char *); extern int psend_command(int, char *, char *); extern int psend_file(int, char *, char *); extern int psend_logoutfile(int, char *, char *); extern int psend_raw_file(int, char *, char *); -extern int psprintf_highlight(int, char *, char *, ...); +extern int psprintf_highlight(int, char *, char *, ...) + PRINTFLIKE(3); extern int safechar(int); extern int safestring(char *); extern int search_directory(char *, char *, char **, int); |