]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
removed some unused variables
authorAndrew Tridgell <tridge@samba.org>
Mon, 1 Apr 2002 04:29:57 +0000 (06:29 +0200)
committerAndrew Tridgell <tridge@samba.org>
Mon, 1 Apr 2002 04:29:57 +0000 (06:29 +0200)
util.c

diff --git a/util.c b/util.c
index 7dee37020f58e3effa2cb420cfe0e4172d5641de..205e29290864c7925519267b5f09a0c725a5b1d1 100644 (file)
--- a/util.c
+++ b/util.c
@@ -23,7 +23,6 @@ static FILE *logfile;
 /* log a message to the CCACHE_LOGFILE location */
 void cc_log(const char *format, ...)
 {
-       int ret;
        va_list ap;
        extern char *cache_logfile;
 
@@ -33,7 +32,7 @@ void cc_log(const char *format, ...)
        if (!logfile) return;
        
        va_start(ap, format);
-       ret = vfprintf(logfile, format, ap);
+       vfprintf(logfile, format, ap);
        va_end(ap);
        fflush(logfile);
 }
@@ -114,11 +113,10 @@ int create_dir(const char *dir)
 void x_asprintf(char **ptr, const char *format, ...)
 {
        va_list ap;
-       unsigned ret;
 
        *ptr = NULL;
        va_start(ap, format);
-       ret = vasprintf(ptr, format, ap);
+       vasprintf(ptr, format, ap);
        va_end(ap);
        
        if (!ptr) fatal("out of memory in x_asprintf");