mirror of
https://git.savannah.gnu.org/git/inetutils.git
synced 2026-01-12 00:19:39 +08:00
libtelnet: Unused parameters.
This commit is contained in:
11
ChangeLog
11
ChangeLog
@@ -1,3 +1,14 @@
|
||||
2013-05-22 Mats Erik Andersson <gnu@gisladisker.se>
|
||||
|
||||
* libtelnet/encrypt.c: Include <unused-parameter.h>.
|
||||
(encrypt_start, encrypt_request_start): Mark all
|
||||
parameters with _GL_UNUSED_PARAMETER.
|
||||
* libtelnet/kerberos5.c: Include <unused-parameter.h>.
|
||||
(kerberos5_init, kerberos5_status): Param `ap' is unused.
|
||||
* libtelnet/shishi.c: Include <unused-parameter.h>.
|
||||
(krb5shishi_init, krb5shishi_status): `ap' is unused.
|
||||
(krb5shishi_cleanup): Likewise. Delete variable SUBKEY.
|
||||
|
||||
2013-05-18 Mats Erik Andersson <gnu@gisladisker.se>
|
||||
|
||||
libtelnet: Portability of enctype_names.
|
||||
|
||||
@@ -81,6 +81,7 @@
|
||||
# include <string.h>
|
||||
|
||||
# include <stdio.h>
|
||||
# include <unused-parameter.h>
|
||||
# include "genget.h"
|
||||
|
||||
/* String representation of our capabilities.
|
||||
@@ -667,7 +668,8 @@ encrypt_reply (unsigned char *data, int cnt)
|
||||
* Called when a ENCRYPT START command is received.
|
||||
*/
|
||||
void
|
||||
encrypt_start (unsigned char *data, int cnt)
|
||||
encrypt_start (unsigned char *data _GL_UNUSED_PARAMETER,
|
||||
int cnt _GL_UNUSED_PARAMETER)
|
||||
{
|
||||
Encryptions *ep;
|
||||
|
||||
@@ -749,7 +751,8 @@ encrypt_request_end (void)
|
||||
* can.
|
||||
*/
|
||||
void
|
||||
encrypt_request_start (unsigned char *data, int cnt)
|
||||
encrypt_request_start (unsigned char *data _GL_UNUSED_PARAMETER,
|
||||
int cnt _GL_UNUSED_PARAMETER)
|
||||
{
|
||||
if (encrypt_mode == 0)
|
||||
{
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
# include <ctype.h>
|
||||
# include <syslog.h>
|
||||
# include <string.h>
|
||||
# include <unused-parameter.h>
|
||||
|
||||
# include "auth.h"
|
||||
# include "misc.h"
|
||||
@@ -119,7 +120,7 @@ Data (TN_Authenticator * ap, int type, krb5_pointer d, int c)
|
||||
|
||||
/* FIXME: Reverse return code! */
|
||||
int
|
||||
kerberos5_init (TN_Authenticator * ap, int server)
|
||||
kerberos5_init (TN_Authenticator * ap _GL_UNUSED_PARAMETER, int server)
|
||||
{
|
||||
str_data[3] = server ? TELQUAL_REPLY : TELQUAL_IS;
|
||||
if (telnet_context == 0 && krb5_init_context (&telnet_context))
|
||||
@@ -426,8 +427,8 @@ kerberos5_reply (TN_Authenticator * ap, unsigned char *data, int cnt)
|
||||
}
|
||||
|
||||
int
|
||||
kerberos5_status (TN_Authenticator * ap, char *name, size_t len,
|
||||
int level)
|
||||
kerberos5_status (TN_Authenticator * ap _GL_UNUSED_PARAMETER,
|
||||
char *name, size_t len, int level)
|
||||
{
|
||||
if (level < AUTH_USER)
|
||||
return level;
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
# include <ctype.h>
|
||||
# include <syslog.h>
|
||||
# include <string.h>
|
||||
# include <unused-parameter.h>
|
||||
|
||||
# include "auth.h"
|
||||
# include "misc.h"
|
||||
@@ -100,7 +101,8 @@ Shishi *shishi_telnet = NULL;
|
||||
|
||||
/* FIXME: Reverse return code! */
|
||||
int
|
||||
krb5shishi_init (TN_Authenticator * ap, int server)
|
||||
krb5shishi_init (TN_Authenticator * ap _GL_UNUSED_PARAMETER,
|
||||
int server)
|
||||
{
|
||||
if (server)
|
||||
str_data[3] = TELQUAL_REPLY;
|
||||
@@ -134,7 +136,7 @@ delayed_shishi_init (void)
|
||||
}
|
||||
|
||||
void
|
||||
krb5shishi_cleanup (TN_Authenticator * ap)
|
||||
krb5shishi_cleanup (TN_Authenticator * ap _GL_UNUSED_PARAMETER)
|
||||
{
|
||||
if (shishi_handle == NULL)
|
||||
return;
|
||||
@@ -150,7 +152,6 @@ krb5shishi_send (TN_Authenticator * ap)
|
||||
char type_check[2];
|
||||
Shishi_tkt *tkt;
|
||||
Shishi_tkts_hint hint;
|
||||
Shishi_key *subkey;
|
||||
int rc;
|
||||
char *tmp;
|
||||
char *apreq;
|
||||
@@ -394,8 +395,8 @@ krb5shishi_reply (TN_Authenticator * ap, unsigned char *data, int cnt)
|
||||
}
|
||||
|
||||
int
|
||||
krb5shishi_status (TN_Authenticator * ap, char *name, size_t len,
|
||||
int level)
|
||||
krb5shishi_status (TN_Authenticator * ap _GL_UNUSED_PARAMETER,
|
||||
char *name, size_t len, int level)
|
||||
{
|
||||
int status;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user