diff options
author | christos <christos@NetBSD.org> | 1997-10-13 21:02:57 +0000 |
---|---|---|
committer | christos <christos@NetBSD.org> | 1997-10-13 21:02:57 +0000 |
commit | bd10b531314ec546d25fd238f27d94c74a726567 (patch) | |
tree | a6f88adfc60ca14d2851035c0a9fce98fcc96438 /sail/extern.h | |
parent | 7e5c0c57606f0f1e9335aa74ef5ea8c8048a9b2c (diff) | |
download | bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.tar.gz bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.tar.zst bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.zip |
- make sure that the arguments to the printf like functions are correct
- add a makemsg() function to accompany makesignal.
Diffstat (limited to 'sail/extern.h')
-rw-r--r-- | sail/extern.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sail/extern.h b/sail/extern.h index caf7cff3..d5ae5701 100644 --- a/sail/extern.h +++ b/sail/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.4 1997/10/13 19:44:01 christos Exp $ */ +/* $NetBSD: extern.h,v 1.5 1997/10/13 21:03:49 christos Exp $ */ /* * Copyright (c) 1983, 1993 @@ -400,8 +400,10 @@ void loadplayer __P((void)); void initscreen __P((void)); void cleanupscreen __P((void)); void newturn __P((int)); -void Signal __P((const char *, struct ship *, ...)); -void Msg __P((const char *, ...)); +void Signal __P((const char *, struct ship *, ...)) + __attribute__((__format__(__printf__,1,3))); +void Msg __P((const char *, ...)) + __attribute__((__format__(__printf__,1,2))); void Scroll __P((void)); void prompt __P((char *, struct ship *)); void endprompt __P((int)); @@ -426,7 +428,10 @@ void initialize __P((void)); /* sync.c */ void fmtship __P((char *, size_t, const char *, struct ship *)); -void makesignal __P((struct ship *, const char *, struct ship *, ...)); +void makesignal __P((struct ship *, const char *, struct ship *, ...)) + __attribute__((__format__(__printf__,2,4))); +void makemsg __P((struct ship *, const char *, ...)) + __attribute__((__format__(__printf__,2,3))); int sync_exists __P((int)); int sync_open __P((void)); void sync_close __P((int)); |