Two global variables didn't need to be global; changed to be static
authorTheodore Tso <tytso@mit.edu>
Fri, 9 Sep 1994 03:36:01 +0000 (03:36 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 9 Sep 1994 03:36:01 +0000 (03:36 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4211 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/rcache/ChangeLog
src/lib/krb5/rcache/rc_io.c

index 47f3f1e00506c898b1966b14fad352edfde3e79b..107692c56b318c5070b4012112605cc36526489d 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  8 23:34:53 1994  Theodore Y. Ts'o  (tytso@pinata)
+
+       * rc_io.c: The variables dirlen and dir were declared global, and
+               didn't need to be; changed to be static.
+
 Sat Aug 20 00:09:37 1994  Theodore Y. Ts'o  (tytso at tsx-11)
 
        * rc_dfl.c (krb5_rc_dfl_expunge): name (t->name) was getting freed
index 671d9bbf7bccf198cd3ae1be7d1e80aeb4615743..5659b85f386b6d82a1a2d2681f1bf45a7848b8e8 100644 (file)
@@ -33,8 +33,8 @@ extern int errno; /* this should be in errno.h, but isn't on some systems */
 #define FREE(x) ((void) free((char *) (x)))
 #define UNIQUE getpid() /* hopefully unique number */
 
-int dirlen = 0;
-char *dir;
+static int dirlen = 0;
+static char *dir;
 
 /* The do ... while(0) is required to insure that GETDIR looks like a
    single statement in all situations (just {}'s may cause troubles in