aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keybox-update.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-10-20 13:53:23 +0000
committerWerner Koch <[email protected]>2008-10-20 13:53:23 +0000
commit0a5f7424660e404e5fd0361b9331d154acf01d6c (patch)
treeb84fb5a994045e12eb326441d8c924094bd915cd /kbx/keybox-update.c
parentFix a bug in estream_snprintf. Found by a failed t-gettime under Windows. (diff)
downloadgnupg-0a5f7424660e404e5fd0361b9331d154acf01d6c.tar.gz
gnupg-0a5f7424660e404e5fd0361b9331d154acf01d6c.zip
Marked all unused args on non-W32 platforms.
Diffstat (limited to 'kbx/keybox-update.c')
-rw-r--r--kbx/keybox-update.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/kbx/keybox-update.c b/kbx/keybox-update.c
index 03009618b..c29e31666 100644
--- a/kbx/keybox-update.c
+++ b/kbx/keybox-update.c
@@ -209,7 +209,7 @@ rename_tmp_file (const char *bakfname, const char *tmpfname,
*/
static int
blob_filecopy (int mode, const char *fname, KEYBOXBLOB blob,
- int secret, off_t start_offset, unsigned int n_packets )
+ int secret, off_t start_offset)
{
FILE *fp, *newfp;
int rc=0;
@@ -392,7 +392,7 @@ keybox_insert_cert (KEYBOX_HANDLE hd, ksba_cert_t cert,
rc = _keybox_create_x509_blob (&blob, cert, sha1_digest, hd->ephemeral);
if (!rc)
{
- rc = blob_filecopy (1, fname, blob, hd->secret, 0, 0 );
+ rc = blob_filecopy (1, fname, blob, hd->secret, 0);
_keybox_release_blob (blob);
/* if (!rc && !hd->secret && kb_offtbl) */
/* { */
@@ -406,6 +406,9 @@ int
keybox_update_cert (KEYBOX_HANDLE hd, ksba_cert_t cert,
unsigned char *sha1_digest)
{
+ (void)hd;
+ (void)cert;
+ (void)sha1_digest;
return -1;
}
@@ -426,6 +429,8 @@ keybox_set_flags (KEYBOX_HANDLE hd, int what, int idx, unsigned int value)
const unsigned char *buffer;
size_t length;
+ (void)idx; /* Not yet used. */
+
if (!hd)
return gpg_error (GPG_ERR_INV_VALUE);
if (!hd->found.blob)