summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2008-10-20 15:53:23 +0200
committerWerner Koch <wk@gnupg.org>2008-10-20 15:53:23 +0200
commit0a5f7424660e404e5fd0361b9331d154acf01d6c (patch)
treeb84fb5a994045e12eb326441d8c924094bd915cd /tools
parentFix a bug in estream_snprintf. Found by a failed t-gettime under Windows. (diff)
downloadgnupg2-0a5f7424660e404e5fd0361b9331d154acf01d6c.tar.xz
gnupg2-0a5f7424660e404e5fd0361b9331d154acf01d6c.zip
Marked all unused args on non-W32 platforms.
Diffstat (limited to 'tools')
-rw-r--r--tools/ChangeLog10
-rw-r--r--tools/gpg-connect-agent.c2
-rw-r--r--tools/gpgparsemail.c10
-rw-r--r--tools/gpgsplit.c11
-rw-r--r--tools/no-libgcrypt.c3
5 files changed, 29 insertions, 7 deletions
diff --git a/tools/ChangeLog b/tools/ChangeLog
index b8c90d08e..7ab7dd82a 100644
--- a/tools/ChangeLog
+++ b/tools/ChangeLog
@@ -1,3 +1,13 @@
+2008-10-20 Werner Koch <wk@g10code.com>
+
+ * gpgsplit.c (write_part): Remove unused arg FNAME. Change caller.
+ (do_split): Ditto.
+
+ * no-libgcrypt.c (gcry_control): Mark unused arg.
+ * gpg-connect-agent.c (do_recvfd): Ditto.
+ * gpgparsemail.c (mime_signed_begin, mime_encrypted_begin): Ditto.
+ (pkcs7_begin): Ditto.
+
2008-10-01 Werner Koch <wk@g10code.com>
* gpg-connect-agent.c (main): New command datafile.
diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c
index d48e3512b..774abfad4 100644
--- a/tools/gpg-connect-agent.c
+++ b/tools/gpg-connect-agent.c
@@ -913,6 +913,8 @@ do_sendfd (assuan_context_t ctx, char *line)
static void
do_recvfd (assuan_context_t ctx, char *line)
{
+ (void)ctx;
+ (void)line;
log_info ("This command has not yet been implemented\n");
}
diff --git a/tools/gpgparsemail.c b/tools/gpgparsemail.c
index 525c604ba..6265efc93 100644
--- a/tools/gpgparsemail.c
+++ b/tools/gpgparsemail.c
@@ -349,6 +349,9 @@ mime_signed_begin (struct parse_info_s *info, rfc822parse_t msg,
rfc822parse_field_t field_ctx)
{
const char *s;
+
+ (void)msg;
+
s = rfc822parse_query_parameter (field_ctx, "protocol", 1);
if (s)
{
@@ -391,6 +394,10 @@ mime_encrypted_begin (struct parse_info_s *info, rfc822parse_t msg,
rfc822parse_field_t field_ctx)
{
const char *s;
+
+ (void)info;
+ (void)msg;
+
s = rfc822parse_query_parameter (field_ctx, "protocol", 0);
if (s)
printf ("h encrypted.protocol: %s\n", s);
@@ -403,6 +410,9 @@ pkcs7_begin (struct parse_info_s *info, rfc822parse_t msg,
rfc822parse_field_t field_ctx)
{
const char *s;
+
+ (void)msg;
+
s = rfc822parse_query_parameter (field_ctx, "name", 0);
if (s)
printf ("h pkcs7.name: %s\n", s);
diff --git a/tools/gpgsplit.c b/tools/gpgsplit.c
index bb8ea0a0c..0d7faa061 100644
--- a/tools/gpgsplit.c
+++ b/tools/gpgsplit.c
@@ -526,8 +526,8 @@ handle_bzip2(int algo,FILE *fpin,FILE *fpout)
/* hdr must point to a buffer large enough to hold all header bytes */
static int
-write_part ( const char *fname, FILE *fpin, unsigned long pktlen,
- int pkttype, int partial, unsigned char *hdr, size_t hdrlen)
+write_part (FILE *fpin, unsigned long pktlen,
+ int pkttype, int partial, unsigned char *hdr, size_t hdrlen)
{
FILE *fpout;
int c, first;
@@ -770,7 +770,7 @@ write_part ( const char *fname, FILE *fpin, unsigned long pktlen,
static int
-do_split (const char *fname, FILE *fp)
+do_split (FILE *fp)
{
int c, ctb, pkttype;
unsigned long pktlen = 0;
@@ -848,8 +848,7 @@ do_split (const char *fname, FILE *fp)
}
}
- return write_part (fname, fp, pktlen, pkttype, partial,
- header, header_idx);
+ return write_part (fp, pktlen, pkttype, partial, header, header_idx);
}
@@ -870,7 +869,7 @@ split_packets (const char *fname)
return;
}
- while ( !(rc = do_split (fname, fp)) )
+ while ( !(rc = do_split (fp)) )
;
if ( rc > 0 )
; /* error already handled */
diff --git a/tools/no-libgcrypt.c b/tools/no-libgcrypt.c
index 009fd95a5..3428e57ee 100644
--- a/tools/no-libgcrypt.c
+++ b/tools/no-libgcrypt.c
@@ -113,8 +113,9 @@ gcry_free (void *a)
/* We need this dummy because exechelp.c uses gcry_control to
terminate the secure memeory. */
gcry_error_t
-gcry_control (enum gcry_ctl_cmds CMD, ...)
+gcry_control (enum gcry_ctl_cmds cmd, ...)
{
+ (void)cmd;
return 0;
}