diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2012-03-11 12:00:00 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2012-03-11 12:00:00 +0000 |
commit | 1301b98e251cd01f8adacb80b6fe549061ef2d48 (patch) | |
tree | 8385ebe1476cb7e9fc215dbfb9f9aa5ac9f741af /epan/dissectors | |
parent | 42df48aab06f55898b63b20c776b3576c08373a2 (diff) |
Use _U_ for unused arguments.
svn path=/trunk/; revision=41478
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-c1222.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-c1222.c b/epan/dissectors/packet-c1222.c index e32ef8ce63..96af230610 100644 --- a/epan/dissectors/packet-c1222.c +++ b/epan/dissectors/packet-c1222.c @@ -802,10 +802,10 @@ keylookup(guint8 *keybuff, guint8 keyid) * \param decrypt TRUE if packet is to be authenticated and decrypted; FALSE if authentication only is requested * \returns TRUE if the requested operation was successful; otherwise FALSE */ +#ifdef HAVE_LIBGCRYPT static gboolean decrypt_packet(guchar *buffer, guint32 length, gboolean decrypt) { -#ifdef HAVE_LIBGCRYPT #define CANONBUFFSIZE 300U guchar canonbuff[CANONBUFFSIZE]; guint8 c1222_key[EAX_SIZEOF_KEY]; @@ -841,14 +841,14 @@ decrypt_packet(guchar *buffer, guint32 length, gboolean decrypt) decrypt ? EAX_MODE_CIPHERTEXT_AUTH : EAX_MODE_CLEARTEXT_AUTH); } return status; +} #else /* HAVE_LIBCRYPT */ - /* these are to silence compiler unreferenced variable warnings */ - buffer=buffer; - length=length; - decrypt=decrypt; +static gboolean +decrypt_packet(guchar *buffer _U_, guint32 length _U_, gboolean decrypt _U_) +{ return FALSE; -#endif /* HAVE_LIBGCRYPT */ } +#endif /* HAVE_LIBGCRYPT */ /** * Checks to make sure that a complete, valid BER-encoded length is in the buffer. |