diff options
Diffstat (limited to '')
-rw-r--r-- | src/hashmap.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/hashmap.c b/src/hashmap.c index c060c60..6185dcf 100644 --- a/src/hashmap.c +++ b/src/hashmap.c @@ -1,14 +1,5 @@ -/* $Id: hashmap.c,v 1.17 2005-08-15 03:54:31 rjkaes Exp $ - * - * A hashmap implementation. The keys are case-insensitive NULL terminated - * strings, and the data is arbitrary lumps of data. Copies of both the - * key and the data in the hashmap itself, so you must free the original - * key and data to avoid a memory leak. The hashmap returns a pointer - * to the data when a key is searched for, so take care in modifying the - * data as it's modifying the data stored in the hashmap. (In other words, - * don't try to free the data, or realloc the memory. :) - * - * Copyright (C) 2002 Robert James Kaes (rjkaes@users.sourceforge.net) +/* tinyproxy - A fast light-weight HTTP proxy + * Copyright (C) 2002 Robert James Kaes <rjkaes@users.sourceforge.net> * * 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 @@ -20,9 +11,18 @@ * 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, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/* A hashmap implementation. The keys are case-insensitive NULL terminated + * strings, and the data is arbitrary lumps of data. Copies of both the + * key and the data in the hashmap itself, so you must free the original + * key and data to avoid a memory leak. The hashmap returns a pointer + * to the data when a key is searched for, so take care in modifying the + * data as it's modifying the data stored in the hashmap. (In other words, + * don't try to free the data, or realloc the memory. :) */ #include "tinyproxy.h" @@ -377,7 +377,7 @@ hashmap_return_entry(hashmap_t map, hashmap_iter iter, char **key, void **data) /* * Searches for _any_ occurrences of "key" within the hashmap. - * + * * Returns: negative upon an error * zero if no key is found * count found |