X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=mem.h;h=88086d4527050bb341e9eb076490af453561e445;hp=0412e4bfd93e32bd3063aea5fff59c04d854d4db;hb=adc800dbc424a1e246dd4a82a0c2e88eeda25531;hpb=0f4971d043c38bae1bfb95201622a1405110f899 diff --git a/mem.h b/mem.h index 0412e4b..88086d4 100644 --- a/mem.h +++ b/mem.h @@ -1,17 +1,26 @@ /* * mem.h - Routines to cleanup memory after use. * - * Jonathan McDowell + * Copyright 2002-2004,2007 Jonathan McDowell * - * Copyright 2002 Project Purple + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; version 2 of the License. * - * $Id: mem.h,v 1.4 2003/06/04 20:57:11 noodles Exp $ + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . */ #ifndef __MEM_H_ #define __MEM_H_ #include "keystructs.h" +#include "stats.h" /** * packet_dup - duplicate an OpenPGP packet. @@ -75,14 +84,4 @@ void free_signedpacket_list( */ void free_publickey(struct openpgp_publickey *key); -/** - * free_statskey - free an stats key structure. - * @key: The key to free. - * - * Takes a stats key and frees the memory used by it and the linked list - * of sigs under it. Doesn't recurse into the list as it's assumed all the - * objects referenced also exist in the hash. - */ -void free_statskey(struct stats_key *key); - #endif /* __MEM_H_ */