diff options
author | Werner Koch <[email protected]> | 2008-10-20 13:53:23 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2008-10-20 13:53:23 +0000 |
commit | 0a5f7424660e404e5fd0361b9331d154acf01d6c (patch) | |
tree | b84fb5a994045e12eb326441d8c924094bd915cd /kbx/keybox-update.c | |
parent | Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows. (diff) | |
download | gnupg-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.c | 9 |
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) |