remove static locals
authorJohn Kohl <jtkohl@mit.edu>
Tue, 5 Jun 1990 11:09:33 +0000 (11:09 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 5 Jun 1990 11:09:33 +0000 (11:09 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1006 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/des/cksum.c
src/lib/crypto/des/enc_dec.c
src/lib/crypto/des/key_sched.c
src/lib/crypto/des/string2key.c

index 37a796460247d4d8b11f361804ae66b687e083e0..8bf4db2242339b1f6c04de210e0e476a27be1ed7 100644 (file)
@@ -61,9 +61,9 @@ mit_des_cbc_cksum(in,out,length,key,iv)
     unsigned long *ivec = (unsigned long *) iv;
 
     unsigned long i,j;
-    static unsigned long t_input[2];
-    static unsigned long t_output[8];
-    static unsigned char *t_in_p;
+    unsigned long t_input[2];
+    unsigned long t_output[8];
+    unsigned char *t_in_p;
 
     t_in_p = (unsigned char *) t_input;
 #ifdef MUSTALIGN
index 93ef361ee7cbc3be29aa7100079d3e5bcba7c9e6..c236258be8caaec98aac3757e59673c1dcbce471 100644 (file)
@@ -237,10 +237,10 @@ mit_des_cbc_encrypt(in,out,length,key,iv,encrypt)
     register unsigned long *ivec = (unsigned long *) iv;
 
     unsigned long i,j;
-    static unsigned long t_input[2];
-    static unsigned long t_output[2];
-    static unsigned char *t_in_p;
-    static unsigned long xor_0, xor_1;
+    unsigned long t_input[2];
+    unsigned long t_output[2];
+    unsigned char *t_in_p;
+    unsigned long xor_0, xor_1;
 
     t_in_p = (unsigned char *) t_input;
     if (encrypt) {
index c14d1de6a8c2bfdabf3f6b4974fcc7c1b7adfe2b..cf7157c2a3ae3652ddc026fa4f471160438ccd5c 100644 (file)
@@ -58,7 +58,7 @@ mit_des_key_sched(k,schedule)
     register i, j, n;          /* i = r10, j = r9, n = r8 */
     register unsigned int temp;        /*  r7 */
     register char *p_char;     /* r6 */
-    static key k_char;
+    key k_char;
     i = 8;
     n = 0;
     p_char = k_char;
index 21e9b34780540bd487b17925e27022dc36939ead..71e536310341c9fed1b6de2507f05106d2e6d2d5 100644 (file)
@@ -60,11 +60,11 @@ OLDDECLARG(krb5_principal, princ)
     register unsigned temp,i;
     register int j;
     register long length;
-    static unsigned char *k_p;
-    static int forward;
+    unsigned char *k_p;
+    int forward;
     register char *p_char;
-    static char k_char[64];
-    static mit_des_key_schedule key_sked;
+    char k_char[64];
+    mit_des_key_schedule key_sked;
 
 #define min(A, B) ((A) < (B) ? (A): (B))