diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-22 22:38:26 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-22 22:38:26 +0100 |
commit | c7bb19c55c7a902e25bdd33b0d49a2ddcf62e07a (patch) | |
tree | b3a75ef2719bc2f334041460fd21fbdf86a23a82 /common/dict.h | |
parent | d336cd6b429f8ce40c58ea287f79bbc7c23d0966 (diff) |
update C coding style to a more commonly used style
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'common/dict.h')
-rw-r--r-- | common/dict.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/dict.h b/common/dict.h index bb244f0..ffb3b44 100644 --- a/common/dict.h +++ b/common/dict.h @@ -2,7 +2,7 @@ dict.h - dictionary functions This file is part of the nss-pam-ldapd library. - Copyright (C) 2007, 2008, 2009, 2010 Arthur de Jong + Copyright (C) 2007, 2008, 2009, 2010, 2012 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -37,15 +37,15 @@ DICT *dict_new(void) /* Add a relation in the dictionary. The key is duplicated and can be reused by the caller. The pointer is just stored. - This function returns non-0 in case of memory allocation + This function returns non-zero in case of memory allocation errors. If the key was previously in use the value is replaced. All key comparisons are case sensitive. */ -int dict_put(DICT *dict,const char *key,void *value); +int dict_put(DICT *dict, const char *key, void *value); /* Look up a key in the dictionary and return the associated value. NULL is returned if the key is not found in the dictionary. All key comparisons are case sensitive. */ -void *dict_get(DICT *dict,const char *key) +void *dict_get(DICT *dict, const char *key) MUST_USE; /* Get a key from the dictionary that has a value set. The caller does @@ -55,7 +55,7 @@ const char *dict_getany(DICT *dict); /* Delete a key-value association from the dictionary. All key comparisons are case sensitive. */ -/*void dict_del(DICT *dict,const char *key);*/ +/*void dict_del(DICT *dict, const char *key);*/ /* Remove the dictionary from memory. All allocated storage for the dictionary and the keys is freed. |