From: Ezra Peisach Date: Wed, 25 Jul 2001 17:48:32 +0000 (+0000) Subject: * import_sec_context.c (krb5_gss_import_sec_context): Get rid of X-Git-Tag: krb5-1.3-alpha1~1171 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0846e5dce13c463c89f76675e19d06a4df18f2c9;p=krb5.git * import_sec_context.c (krb5_gss_import_sec_context): Get rid of variable set but never used. * ser_sctx.c (kg_queue_internalize): Ditto git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13640 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 482bc2bf6..cbc0583be 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,9 @@ +2001-07-25 Ezra Peisach + + * import_sec_context.c (krb5_gss_import_sec_context): Get rid of + variable set but never used. + * ser_sctx.c (kg_queue_internalize): Ditto + 2001-07-04 Ezra Peisach * ser_sctx.c: Declare kg_oid_size and kg_queue_size static. diff --git a/src/lib/gssapi/krb5/import_sec_context.c b/src/lib/gssapi/krb5/import_sec_context.c index 659cdc2b7..fd062fa9b 100644 --- a/src/lib/gssapi/krb5/import_sec_context.c +++ b/src/lib/gssapi/krb5/import_sec_context.c @@ -58,7 +58,6 @@ krb5_gss_import_sec_context(minor_status, interprocess_token, context_handle) { krb5_context context; krb5_error_code kret = 0; - OM_uint32 retval; size_t blen; krb5_gss_ctx_id_t ctx; krb5_octet *ibp; @@ -68,7 +67,6 @@ krb5_gss_import_sec_context(minor_status, interprocess_token, context_handle) /* Assume a tragic failure */ ctx = (krb5_gss_ctx_id_t) NULL; - retval = GSS_S_FAILURE; *minor_status = 0; /* Internalize the context */ diff --git a/src/lib/gssapi/krb5/ser_sctx.c b/src/lib/gssapi/krb5/ser_sctx.c index bfe3a58df..8ab9401c3 100644 --- a/src/lib/gssapi/krb5/ser_sctx.c +++ b/src/lib/gssapi/krb5/ser_sctx.c @@ -153,7 +153,6 @@ kg_queue_internalize(kcontext, argp, buffer, lenremain) krb5_octet **buffer; size_t *lenremain; { - krb5_error_code kret; krb5_int32 ibuf; krb5_octet *bp; size_t remain; @@ -162,7 +161,7 @@ kg_queue_internalize(kcontext, argp, buffer, lenremain) remain = *lenremain; /* Read in and check our magic number */ - if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) + if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) return (EINVAL); if (ibuf != KV5M_GSS_QUEUE) @@ -171,7 +170,7 @@ kg_queue_internalize(kcontext, argp, buffer, lenremain) g_queue_internalize(argp, &bp, &remain); /* Read in and check our trailing magic number */ - if ((kret = krb5_ser_unpack_int32(&ibuf, &bp, &remain))) + if (krb5_ser_unpack_int32(&ibuf, &bp, &remain)) return (EINVAL); if (ibuf != KV5M_GSS_QUEUE)