Tim Ruehsen tim.ruehsen@gmx.de writes:
diff --git a/pgp-encode.c b/pgp-encode.c index 9a69922..f84373c 100644 --- a/pgp-encode.c +++ b/pgp-encode.c @@ -246,7 +246,6 @@ pgp_put_rsa_sha1_signature(struct nettle_buffer *buffer, unsigned hash_end; unsigned sub_packet_start; uint8_t trailer[6];
uint8_t digest16[2]; mpz_t s;
/* Signature packet. The packet could reasonably be both smaller and
diff --git a/rsa2openpgp.c b/rsa2openpgp.c index c4666f3..4c62f49 100644 --- a/rsa2openpgp.c +++ b/rsa2openpgp.c @@ -64,7 +64,6 @@ rsa_keypair_to_openpgp(struct nettle_buffer *buffer, time_t now = time(NULL);
unsigned key_start;
unsigned key_length; unsigned userid_start;
struct sha1_ctx key_hash;
Applied.
diff --git a/desdata.c b/desdata.c index fc89c2d..6671b5d 100644 --- a/desdata.c +++ b/desdata.c @@ -62,7 +62,7 @@ int sorder[] = { 7, 5, 3, 1, 6, 4, 2, 0, };
-int printf(const char *, ...); +int printf(const char *, ...) PRINTF_STYLE(1,2);
int main(int argc UNUSED, char **argv UNUSED)
Changed it to include stdio.h instead.
diff --git a/examples/io.h b/examples/io.h index ff4a18d..e83b7eb 100644 --- a/examples/io.h +++ b/examples/io.h @@ -37,11 +37,7 @@ void * xalloc(size_t size);
void -werror(const char *format, ...) -#if __GNUC___
__attribute__((__format__ (__printf__,1, 2)))
-#endif
;
+werror(const char *format, ...) PRINTF_STYLE(1,2);
/* If size is > 0, read at most that many bytes. If size == 0,
- read until EOF. Allocates the buffer dynamically. */
Did this a few days ago.
index 48e53d0..3d07868 100644 --- a/examples/nettle-benchmark.c +++ b/examples/nettle-benchmark.c @@ -96,7 +96,7 @@ static double frequency = 0.0; #define BENCH_ITERATIONS 10 #endif
-static void NORETURN +static void NORETURN PRINTF_STYLE(1,2) die(const char *format, ...) { va_list args;
Applied.
Thanks, /Niels