* ftp.c (gss_trials, n_gss_trials): Make static and const.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18760
dc483132-0cff-0310-8789-
dd5450dbe970
#endif /* KRB5_KRB4_COMPAT */
#ifdef GSSAPI
-struct {
+static const struct {
gss_OID mech_type;
char *service_name;
} gss_trials[] = {
{ GSS_C_NO_OID, "ftp" },
{ GSS_C_NO_OID, "host" },
};
-int n_gss_trials = sizeof(gss_trials)/sizeof(gss_trials[0]);
+static const int n_gss_trials = sizeof(gss_trials)/sizeof(gss_trials[0]);
#endif /* GSSAPI */
int do_auth()
{
static char *outbuf; /* output ciphertext */
static unsigned int bufsize; /* size of outbuf */
- ftp_int32 length;
+ ftp_int32 length = 0;
ftp_uint32 net_len;
unsigned int fudge = smaxbuf - smaxqueue; /* Difference in length
buffer lengths required */