summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/packet.h
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>1999-12-27 10:46:12 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>1999-12-27 10:46:12 +0000
commit7c8a137a50414c65c2f74e1fafc7bc9d6d5dbf5f (patch)
tree5082ca0b8076a01900c52eda849cb4aed463322a /usr.bin/ssh/packet.h
parent655b0cc6096a7fb8ae6f6c7b4e8e3aa833eae3f1 (diff)
check format string for packet_disconnect and packet_send_debug, too
Diffstat (limited to 'usr.bin/ssh/packet.h')
-rw-r--r--usr.bin/ssh/packet.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/packet.h b/usr.bin/ssh/packet.h
index 64950f55570..a177f588bf7 100644
--- a/usr.bin/ssh/packet.h
+++ b/usr.bin/ssh/packet.h
@@ -13,7 +13,7 @@
*
*/
-/* RCSID("$Id: packet.h,v 1.6 1999/11/24 19:53:48 markus Exp $"); */
+/* RCSID("$Id: packet.h,v 1.7 1999/12/27 10:46:11 markus Exp $"); */
#ifndef PACKET_H
#define PACKET_H
@@ -144,7 +144,7 @@ char *packet_get_string(unsigned int *length_ptr);
* The error message should not contain a newline. The total length of the
* message must not exceed 1024 bytes.
*/
-void packet_disconnect(const char *fmt,...);
+void packet_disconnect(const char *fmt,...) __attribute__((format(printf, 1, 2)));;
/*
* Sends a diagnostic message to the other side. This message can be sent at
@@ -156,7 +156,7 @@ void packet_disconnect(const char *fmt,...);
* remote side protocol flags do not indicate that it supports SSH_MSG_DEBUG,
* this will do nothing.
*/
-void packet_send_debug(const char *fmt,...);
+void packet_send_debug(const char *fmt,...) __attribute__((format(printf, 1, 2)));;
/* Checks if there is any buffered output, and tries to write some of the output. */
void packet_write_poll(void);