]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
cache.c: mark a few variables as static
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Sun, 21 Feb 2010 18:20:59 +0000 (19:20 +0100)
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Sun, 21 Feb 2010 18:31:47 +0000 (19:31 +0100)
ccache.c

index 9c29888ded5b98359551a6a79eef3bad4ebbcb7c..cad794aa185d9c02642e504788559997ac4b182f 100644 (file)
--- a/ccache.c
+++ b/ccache.c
 #include <unistd.h>
 
 /* current working directory taken from $PWD, or getcwd() if $PWD is bad */
-char *current_working_dir;
+static char *current_working_dir;
 
 /* the base cache directory */
 char *cache_dir = NULL;
 
 /* the directory for temporary files */
-char *temp_dir = NULL;
+static char *temp_dir = NULL;
 
 /* the debug logfile name, if set */
 char *cache_logfile = NULL;
 
 /* base directory (from CCACHE_BASEDIR) */
-char *base_dir;
+static char *base_dir;
 
 /* the argument list after processing */
 static ARGS *stripped_args;
@@ -68,7 +68,7 @@ static char *input_file;
 /*
  * the hash of the file containing the cached object code (abcdef[...]-size)
  */
-struct file_hash *object_hash;
+static struct file_hash *object_hash;
 
 /*
  * the name of the file containing the cached object code (abcdef[...]-size)