/*
- * $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
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);
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) {
/*
- * $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
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);
}
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());