diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2008-08-19 16:43:17 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2008-08-19 16:43:17 +0000 |
commit | d308f082c1e5a8009853956a96f80c5f9414de9e (patch) | |
tree | 160a5133e3af2f32d73e15fba02c983c8594a2e9 /src/kim/lib/kim_preferences.c | |
parent | 6dca73af4ae57815687d4f5b919863bfc5658b19 (diff) | |
download | krb5-d308f082c1e5a8009853956a96f80c5f9414de9e.tar.gz krb5-d308f082c1e5a8009853956a96f80c5f9414de9e.tar.xz krb5-d308f082c1e5a8009853956a96f80c5f9414de9e.zip |
Modified hints APIs to be a single API that takes string keys.
Removed error object.
Changed error message API to use thread specific data.
Split out debugging API into separate files.
ticket: 6055
status: open
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20670 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kim/lib/kim_preferences.c')
-rw-r--r-- | src/kim/lib/kim_preferences.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/kim/lib/kim_preferences.c b/src/kim/lib/kim_preferences.c index c017fa866a..c2805fda00 100644 --- a/src/kim/lib/kim_preferences.c +++ b/src/kim/lib/kim_preferences.c @@ -192,7 +192,8 @@ kim_error kim_favorite_identities_get_identity_at_index (kim_favorite_identities if (!err) { if (in_index >= in_favorite_identities->count) { - err = kim_error_create_from_code (KIM_BAD_IDENTITY_INDEX_ECODE, in_index); + err = kim_error_set_message_for_code (KIM_BAD_IDENTITY_INDEX_ECODE, + in_index); } } @@ -238,8 +239,8 @@ kim_error kim_favorite_identities_add_identity (kim_favorite_identities io_favor err = kim_identity_get_display_string (in_identity, &display_string); if (!err) { - err = kim_error_create_from_code (KIM_IDENTITY_ALREADY_IN_IDENTITIES_LIST, - display_string); + err = kim_error_set_message_for_code (KIM_IDENTITY_ALREADY_IN_IDENTITIES_LIST, + display_string); } kim_string_free (&display_string); @@ -296,7 +297,6 @@ kim_error kim_favorite_identities_remove_identity (kim_favorite_identities io_fa kim_error terr = kim_favorite_identities_resize (io_favorite_identities, new_count); if (terr) { kim_debug_printf ("failed to resize list to %d. Continuing.", new_count); - kim_error_free (&terr); } kim_identity_free (&identity); @@ -310,7 +310,8 @@ kim_error kim_favorite_identities_remove_identity (kim_favorite_identities io_fa err = kim_identity_get_display_string (in_identity, &display_string); if (!err) { - err = kim_error_create_from_code (KIM_IDENTITY_NOT_IN_IDENTITIES_LIST, display_string); + err = kim_error_set_message_for_code (KIM_IDENTITY_NOT_IN_IDENTITIES_LIST, + display_string); } kim_string_free (&display_string); |