[698] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Two global variables in rcache code don't have to be global

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Fri Sep 2 10:56:33 1994

Date: Fri, 2 Sep 1994 10:57:36 -0400
From: "Jonathan I. Kamens" <jik@cam.ov.com>
To: krb5-bugs@MIT.EDU

--- lib/krb5/rcache/rc_io.c	Fri Jun 10 15:30:28 1994
+++ rc_io.c	Fri Sep  2 10:56:35 1994
@@ -38,8 +38,8 @@
 #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

home help back first fref pref prev next nref lref last post