Fix unused variable warnings

This commit is contained in:
Nicolas Williams
2013-06-02 15:52:41 -05:00
parent 774f166e31
commit a53f3a49e2
3 changed files with 3 additions and 6 deletions

View File

@@ -332,7 +332,7 @@ gss_auth(void *app_data, char *host)
gss_buffer_desc input, output_token; gss_buffer_desc input, output_token;
int context_established = 0; int context_established = 0;
char *p; char *p;
int n; int n = 0;
gss_channel_bindings_t bindings; gss_channel_bindings_t bindings;
struct gssapi_data *d = app_data; struct gssapi_data *d = app_data;
OM_uint32 mech_flags = GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG; OM_uint32 mech_flags = GSS_C_MUTUAL_FLAG | GSS_C_SEQUENCE_FLAG;
@@ -426,7 +426,7 @@ gss_auth(void *app_data, char *host)
n = command("ADAT %s", p); n = command("ADAT %s", p);
free(p); free(p);
} }
if (GSS_ERROR(maj_stat)) { if (GSS_ERROR(maj_stat) || n >= 4) {
if (d->context_hdl != GSS_C_NO_CONTEXT) if (d->context_hdl != GSS_C_NO_CONTEXT)
gss_delete_sec_context (&min_stat, gss_delete_sec_context (&min_stat,
&d->context_hdl, &d->context_hdl,

View File

@@ -403,7 +403,6 @@ close_connection(int fd, const char *message)
char *p; char *p;
int lsb = 0; int lsb = 0;
size_t mlen; size_t mlen;
ssize_t ret;
mlen = strlen(message); mlen = strlen(message);
if(mlen > 255) if(mlen > 255)
@@ -434,7 +433,7 @@ close_connection(int fd, const char *message)
buf[6] = 0; buf[6] = 0;
buf[7] = (p - buf - 8) / 4; buf[7] = (p - buf - 8) / 4;
} }
ret = write(fd, buf, p - buf); write(fd, buf, p - buf);
close(fd); close(fd);
} }

View File

@@ -318,7 +318,6 @@ dup_similar_keys_in_keyset(krb5_context context, Keys *keys)
krb5_error_code ret; krb5_error_code ret;
size_t i, k; size_t i, k;
Key key; Key key;
int keyset_has_1des = 0;
int keyset_has_1des_crc = 0; int keyset_has_1des_crc = 0;
int keyset_has_1des_md4 = 0; int keyset_has_1des_md4 = 0;
int keyset_has_1des_md5 = 0; int keyset_has_1des_md5 = 0;
@@ -343,7 +342,6 @@ dup_similar_keys_in_keyset(krb5_context context, Keys *keys)
if (k == keys->len) if (k == keys->len)
return 0; return 0;
keyset_has_1des = 1;
ret = copy_Key(&keys->val[k], &key); ret = copy_Key(&keys->val[k], &key);
if (ret) if (ret)
return ret; return ret;