From: wessels <> Date: Tue, 20 Aug 1996 05:09:25 +0000 (+0000) Subject: compiler X-Git-Tag: SQUID_3_0_PRE1~5954 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edae7bc01b8c21f6c9db039886bb2271dee5758f;p=thirdparty%2Fsquid.git compiler --- diff --git a/src/store.cc b/src/store.cc index 9181176a5d..72517fd809 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,5 +1,5 @@ /* - * $Id: store.cc,v 1.83 1996/08/19 22:45:31 wessels Exp $ + * $Id: store.cc,v 1.84 1996/08/19 23:09:25 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -689,7 +689,7 @@ void storeSetPrivateKey(e) fatal_dump("Private key already exists."); } if (e->key) - storeHashDelete((hash_link *) e); + storeHashDelete(e); if (e->key && !BIT_TEST(e->flag, KEY_URL)) safe_free(e->key); e->key = xstrdup(newkey); @@ -721,7 +721,7 @@ void storeSetPublicKey(e) newkey = storeGeneratePublicKey(e->url, e->method); } if (e->key) - storeHashDelete((hash_link *) e); + storeHashDelete(e); if (e->key && !BIT_TEST(e->flag, KEY_URL)) safe_free(e->key); if (e->method == METHOD_GET) { diff --git a/src/tools.cc b/src/tools.cc index 239e5e8ec8..d9610be560 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -1,6 +1,6 @@ /* - * $Id: tools.cc,v 1.47 1996/08/19 22:44:57 wessels Exp $ + * $Id: tools.cc,v 1.48 1996/08/19 23:09:26 wessels Exp $ * * DEBUG: section 21 Misc Functions * AUTHOR: Harvest Derived @@ -137,10 +137,10 @@ void mail_warranty() if ((fp = fopen(filename, "w")) == NULL) return; fprintf(fp, "From: %s\n", appname); - fprintf(fp, "To: %s\n", getAdminEmail()); + fprintf(fp, "To: %s\n", Config.adminEmail); fprintf(fp, "Subject: %s\n", dead_msg()); fclose(fp); - sprintf(command, "mail %s < %s", getAdminEmail(), filename); + sprintf(command, "mail %s < %s", Config.adminEmail, filename); system(command); /* XXX should avoid system(3) */ unlink(filename); } @@ -235,7 +235,7 @@ void death(sig) PrintRusage(NULL, debug_log); if (squid_curtime - SQUID_RELEASE_TIME < 864000) { /* skip if more than 10 days old */ - if (getAdminEmail()) + if (Config.adminEmail) mail_warranty(); else puts(dead_msg());