diff options
-rw-r--r-- | games/cribbage/cribbage.h | 4 | ||||
-rw-r--r-- | games/quiz/quiz.c | 3 | ||||
-rw-r--r-- | games/snake/snake/snake.h | 4 |
3 files changed, 5 insertions, 6 deletions
diff --git a/games/cribbage/cribbage.h b/games/cribbage/cribbage.h index 6a20dc4..4a09a23 100644 --- a/games/cribbage/cribbage.h +++ b/games/cribbage/cribbage.h @@ -63,7 +63,7 @@ extern BOOLEAN playing; /* currently playing game */ extern char expl[]; /* string for explanation */ -void addmsg(const char *, ...); +void addmsg(const char *, ...) __printflike(1, 2); int adjust(CARD [], CARD); int anymove(CARD [], int, int); int anysumto(CARD [], int, int, int); @@ -91,7 +91,7 @@ int isone(CARD, CARD [], int); void makeboard(void); void makedeck(CARD []); void makeknown(CARD [], int); -void msg(const char *, ...); +void msg(const char *, ...) __printflike(1, 2); int msgcard(CARD, BOOLEAN); int msgcrd(CARD, BOOLEAN, char *, BOOLEAN); int number(int, int, char *); diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c index 5bffadc..5993e4d 100644 --- a/games/quiz/quiz.c +++ b/games/quiz/quiz.c @@ -69,14 +69,13 @@ static u_int qsize; char *appdstr(char *, char *, size_t); void downcase(char *); -void err(const char *, ...); +void err(const char *, ...) __printflike(1, 2); void get_cats(char *, char *); void get_file(char *); char *next_cat(char *); void quiz(void); void score(u_int, u_int, u_int); void show_index(void); -void usage(void); int main(argc, argv) diff --git a/games/snake/snake/snake.h b/games/snake/snake/snake.h index 79c08e1..9392791 100644 --- a/games/snake/snake/snake.h +++ b/games/snake/snake/snake.h @@ -78,8 +78,8 @@ struct ltchars olttyc, nlttyc; #endif struct point *point(); #if __STDC__ -void apr(struct point *, const char *, ...); -void pr(const char *, ...); +void apr(struct point *, const char *, ...) __printflike(2, 3); +void pr(const char *, ...) __printflike(1, 2); #else void apr(); void pr(); |