diff options
author | brian <brian@cvs.openbsd.org> | 2001-08-02 20:53:01 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 2001-08-02 20:53:01 +0000 |
commit | 40d2a7b6d79257dae2d970175ae9ad260436e6b5 (patch) | |
tree | b51d387e583edc5c0a9d29a5ffaaa4027baf3ac8 /usr.sbin | |
parent | fa89e223acacc0af7266c781447ef14eef8636c3 (diff) |
Declare prompt_vPrintf as being printf-link when __GNUC__ is defined
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/ppp/prompt.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ppp/prompt.h b/usr.sbin/ppp/ppp/prompt.h index 8f499e00791..cd29138afb1 100644 --- a/usr.sbin/ppp/ppp/prompt.h +++ b/usr.sbin/ppp/ppp/prompt.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: prompt.h,v 1.4 2000/02/27 01:38:28 brian Exp $ + * $OpenBSD: prompt.h,v 1.5 2001/08/02 20:53:00 brian Exp $ */ #define LOCAL_AUTH 0x01 @@ -75,7 +75,12 @@ extern void prompt_Printf(struct prompt *, const char *, ...) #else extern void prompt_Printf(struct prompt *, const char *, ...); #endif +#ifdef __GNUC__ +extern void prompt_vPrintf(struct prompt *, const char *, _BSD_VA_LIST_) + __attribute__ ((format (printf, 2, 0))); +#else extern void prompt_vPrintf(struct prompt *, const char *, _BSD_VA_LIST_); +#endif #define PROMPT_DONT_WANT_INT 1 #define PROMPT_WANT_INT 0 extern void prompt_TtyInit(struct prompt *); |