aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-passwords.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-10-12 10:01:38 +0800
committerChris Toshok <toshok@src.gnome.org>2001-10-12 10:01:38 +0800
commit88e80089d15be094b0846712b798f9eeedaaa616 (patch)
tree7e566551a178e03628999c5c58406c388e957978 /e-util/e-passwords.c
parent6335fc8ec885d1a93ff58fc0321fce3ba2c5c42a (diff)
downloadgsoc2013-evolution-88e80089d15be094b0846712b798f9eeedaaa616.tar
gsoc2013-evolution-88e80089d15be094b0846712b798f9eeedaaa616.tar.gz
gsoc2013-evolution-88e80089d15be094b0846712b798f9eeedaaa616.tar.bz2
gsoc2013-evolution-88e80089d15be094b0846712b798f9eeedaaa616.tar.lz
gsoc2013-evolution-88e80089d15be094b0846712b798f9eeedaaa616.tar.xz
gsoc2013-evolution-88e80089d15be094b0846712b798f9eeedaaa616.tar.zst
gsoc2013-evolution-88e80089d15be094b0846712b798f9eeedaaa616.zip
change prototype for e_passwords_get_password.
2001-10-11 Chris Toshok <toshok@ximian.com> * e-passwords.h: change prototype for e_passwords_get_password. * e-passwords.c (e_passwords_get_password): remove 'const' from return type - the return type is now allocated and must be freed by the caller. svn path=/trunk/; revision=13608
Diffstat (limited to 'e-util/e-passwords.c')
-rw-r--r--e-util/e-passwords.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/e-util/e-passwords.c b/e-util/e-passwords.c
index da400d0a5c..b201109b13 100644
--- a/e-util/e-passwords.c
+++ b/e-util/e-passwords.c
@@ -196,9 +196,10 @@ e_passwords_forget_password (const char *key)
* e_passwords_get_password:
* @key: the key
*
- * Return value: the password associated with @key, or %NULL.
+ * Return value: the password associated with @key, or %NULL. Caller
+ * must free the returned password.
**/
-const char *
+char *
e_passwords_get_password (const char *key)
{
char *passwd = g_hash_table_lookup (passwords, key);