summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-03-28 16:32:01 +0100
committerJakub Jelen <jjelen@redhat.com>2019-07-04 15:26:19 +0200
commit5f188225559a0745a7e7600304afc171f9ab8c53 (patch)
tree06dee7a881447bafcd6a48be2af4a1ccf9403ff8 /src
parent27b75a2f15b1a9be41d0d6c51552f23c1f929e26 (diff)
Avoid unused arguments
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/vcard_emul_nss.c10
-rw-r--r--src/vcard_emul_type.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/vcard_emul_nss.c b/src/vcard_emul_nss.c
index 9c1bbe6..38b70a6 100644
--- a/src/vcard_emul_nss.c
+++ b/src/vcard_emul_nss.c
@@ -399,7 +399,7 @@ cleanup:
/* return the number of login attempts still possible on the card. if unknown,
* return -1 */
int
-vcard_emul_get_login_count(VCard *card)
+vcard_emul_get_login_count(G_GNUC_UNUSED VCard *card)
{
return -1;
}
@@ -488,7 +488,7 @@ vcard_emul_logout(VCard *card)
}
void
-vcard_emul_reset(VCard *card, VCardPower power)
+vcard_emul_reset(VCard *card, G_GNUC_UNUSED VCardPower power)
{
/*
* if we reset the card (either power on or power off), we lose our login
@@ -607,7 +607,7 @@ static unsigned char *nss_atr;
static int nss_atr_len;
void
-vcard_emul_get_atr(VCard *card, unsigned char *atr, int *atr_len)
+vcard_emul_get_atr(G_GNUC_UNUSED VCard *card, unsigned char *atr, int *atr_len)
{
int len;
assert(atr != NULL);
@@ -819,7 +819,7 @@ vcard_emul_event_thread(void *arg)
/* if the card is inserted when we start up, make sure our state is correct */
static void
-vcard_emul_init_series(VReader *vreader, VCard *vcard)
+vcard_emul_init_series(VReader *vreader, G_GNUC_UNUSED VCard *vcard)
{
VReaderEmul *vreader_emul = vreader_get_private(vreader);
PK11SlotInfo *slot = vreader_emul->slot;
@@ -860,7 +860,7 @@ static const VCardEmulOptions default_options = {
* NULL.
*/
static char *
-vcard_emul_get_password(PK11SlotInfo *slot, PRBool retries, void *pw_arg)
+vcard_emul_get_password(G_GNUC_UNUSED PK11SlotInfo *slot, PRBool retries, void *pw_arg)
{
/* if it didn't work the first time, don't keep trying */
if (retries) {
diff --git a/src/vcard_emul_type.c b/src/vcard_emul_type.c
index 65fcd8b..fc95ebe 100644
--- a/src/vcard_emul_type.c
+++ b/src/vcard_emul_type.c
@@ -17,7 +17,7 @@
#include "glib-compat.h"
VCardStatus vcard_init(VReader *vreader, VCard *vcard,
- VCardEmulType type, const char *params,
+ VCardEmulType type, G_GNUC_UNUSED const char *params,
unsigned char *const *cert, int cert_len[],
VCardKey *key[], int cert_count)
{
@@ -43,7 +43,7 @@ VCardStatus vcard_init(VReader *vreader, VCard *vcard,
return VCARD_FAIL;
}
-VCardEmulType vcard_emul_type_select(VReader *vreader)
+VCardEmulType vcard_emul_type_select(G_GNUC_UNUSED VReader *vreader)
{
/* return the default */
return VCARD_EMUL_CAC;