* import_sec_context.c (krb5_gss_import_sec_context): Get rid of
authorEzra Peisach <epeisach@mit.edu>
Wed, 25 Jul 2001 17:48:32 +0000 (17:48 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 25 Jul 2001 17:48:32 +0000 (17:48 +0000)
        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

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/import_sec_context.c
src/lib/gssapi/krb5/ser_sctx.c

index 482bc2bf654e32945d655473da52dc7829d3c1b9..cbc0583be155535eea081d958f8796f74ae68173 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-25  Ezra Peisach  <epeisach@mit.edu>
+
+       * 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  <epeisach@mit.edu>
 
        * ser_sctx.c: Declare kg_oid_size and kg_queue_size static.
index 659cdc2b7a1c7020d719abb63ded66f3bb8a10d2..fd062fa9bb294e3a5849026b65fbe09ab9f9afa0 100644 (file)
@@ -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 */
index bfe3a58dfcb69f2e9ef5b6af3ddfce8000632b9d..8ab9401c3ec6dbd82d760e14e6f086e687a85c2b 100644 (file)
@@ -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)