From 3e1c06e74f790a3eaea6c70fcdf257dcb8bf0e18 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 4 Jan 2024 00:37:11 +0100 Subject: Added usage of PRINTFLIKE() --- FICS/utils.h | 14 ++++++++------ 1 file 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 +#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); -- cgit v1.2.3