From 0a5f7424660e404e5fd0361b9331d154acf01d6c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 20 Oct 2008 13:53:23 +0000 Subject: Marked all unused args on non-W32 platforms. --- g10/build-packet.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'g10/build-packet.c') diff --git a/g10/build-packet.c b/g10/build-packet.c index c9ba9d8d1..37922d90c 100644 --- a/g10/build-packet.c +++ b/g10/build-packet.c @@ -1241,14 +1241,16 @@ write_header( IOBUF out, int ctb, u32 len ) static int -write_sign_packet_header( IOBUF out, int ctb, u32 len ) +write_sign_packet_header (IOBUF out, int ctb, u32 len) { - /* work around a bug in the pgp read function for signature packets, - * which are not correctly coded and silently assume at some - * point 2 byte length headers.*/ - iobuf_put(out, 0x89 ); - iobuf_put(out, len >> 8 ); - return iobuf_put(out, len ) == -1 ? -1:0; + (void)ctb; + + /* Work around a bug in the pgp read function for signature packets, + which are not correctly coded and silently assume at some point 2 + byte length headers.*/ + iobuf_put (out, 0x89 ); + iobuf_put (out, len >> 8 ); + return iobuf_put (out, len) == -1 ? -1:0; } /**************** @@ -1350,9 +1352,11 @@ write_new_header( IOBUF out, int ctb, u32 len, int hdrlen ) } static int -write_version( IOBUF out, int ctb ) +write_version (IOBUF out, int ctb) { - if( iobuf_put( out, 3 ) ) - return -1; - return 0; + (void)ctb; + + if (iobuf_put (out, 3)) + return -1; + return 0; } -- cgit v1.2.3