svn rev #25106: trunk/src/lib/krb5/asn.1/

epeisach@MIT.EDU epeisach at MIT.EDU
Thu Aug 18 22:39:18 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25106
Commit By: epeisach
Log Message:
Remove setting a variable that is never used


Changed Files:
U   trunk/src/lib/krb5/asn.1/krb5_encode.c
Modified: trunk/src/lib/krb5/asn.1/krb5_encode.c
===================================================================
--- trunk/src/lib/krb5/asn.1/krb5_encode.c	2011-08-19 02:38:31 UTC (rev 25105)
+++ trunk/src/lib/krb5/asn.1/krb5_encode.c	2011-08-19 02:39:18 UTC (rev 25106)
@@ -38,11 +38,10 @@
  *     retval: stores error codes returned from subroutines
  *     buf: the coding buffer
  *     length: length of the most-recently produced encoding
- *     sum: cumulative length of the entire encoding
  */
 #define krb5_setup()                            \
     asn1_error_code retval;                     \
-    unsigned int length, sum = 0;               \
+    unsigned int length;                        \
     asn1buf *buf=NULL;                          \
     krb5_data *tmpcode;                         \
                                                 \
@@ -70,7 +69,6 @@
     krb5_setup();
     retval = asn1_encode_pa_pk_as_req(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -81,7 +79,6 @@
     krb5_setup();
     retval = asn1_encode_pa_pk_as_req_draft9(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -91,7 +88,6 @@
     krb5_setup();
     retval = asn1_encode_pa_pk_as_rep(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -101,7 +97,6 @@
     krb5_setup();
     retval = asn1_encode_pa_pk_as_rep_draft9(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -111,7 +106,6 @@
     krb5_setup();
     retval = asn1_encode_auth_pack(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -122,7 +116,6 @@
     krb5_setup();
     retval = asn1_encode_auth_pack_draft9(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -132,7 +125,6 @@
     krb5_setup();
     retval = asn1_encode_kdc_dh_key_info(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -142,7 +134,6 @@
     krb5_setup();
     retval = asn1_encode_reply_key_pack(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -153,7 +144,6 @@
     krb5_setup();
     retval = asn1_encode_reply_key_pack_draft9(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -164,7 +154,6 @@
     krb5_setup();
     retval = asn1_encode_td_trusted_certifiers(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 
@@ -175,7 +164,6 @@
     krb5_setup();
     retval = asn1_encode_sequence_of_algorithm_identifier(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }
 #endif /* DISABLE_PKINIT */
@@ -186,6 +174,5 @@
     krb5_setup();
     retval = asn1_encode_sequence_of_typed_data(buf,rep,&length);
     if (retval) goto error;
-    sum += length;
     krb5_cleanup();
 }




More information about the cvs-krb5 mailing list