From a7b5808b5df9e54ef8a8a7ac24e5faad458ddbce Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sat, 24 May 2014 12:15:32 -0400 Subject: Use k5_setmsg Replace most calls to krb5_set_error_message with k5_setmsg for brevity. Leave alone plugin sources where we don't include k5-int.h (mostly PKINIT). --- src/plugins/kdb/db2/kdb_db2.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/plugins/kdb/db2') diff --git a/src/plugins/kdb/db2/kdb_db2.c b/src/plugins/kdb/db2/kdb_db2.c index b0cd2a5e9..b2c449f5b 100644 --- a/src/plugins/kdb/db2/kdb_db2.c +++ b/src/plugins/kdb/db2/kdb_db2.c @@ -230,9 +230,9 @@ configure_context(krb5_context context, char *conf_section, char **db_args) dbc->hashfirst = TRUE; } else { status = EINVAL; - krb5_set_error_message(context, status, - _("Unsupported argument \"%s\" for db2"), - opt ? opt : val); + k5_setmsg(context, status, + _("Unsupported argument \"%s\" for db2"), + opt ? opt : val); goto cleanup; } } @@ -813,9 +813,8 @@ krb5_db2_put_principal(krb5_context context, krb5_db_entry *entry, krb5_clear_error_message (context); if (db_args) { /* DB2 does not support db_args DB arguments for principal */ - krb5_set_error_message(context, EINVAL, - _("Unsupported argument \"%s\" for db2"), - db_args[0]); + k5_setmsg(context, EINVAL, _("Unsupported argument \"%s\" for db2"), + db_args[0]); return EINVAL; } -- cgit