diff options
| author | Greg Hudson <ghudson@mit.edu> | 2014-05-24 12:15:32 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2014-06-05 11:22:50 -0400 |
| commit | a7b5808b5df9e54ef8a8a7ac24e5faad458ddbce (patch) | |
| tree | b98160b39c648d8b1d967fa3b1b885b9232f74d1 /src/plugins/kdb/db2 | |
| parent | 06b91d1e2341601e5bdc70a15737187545d68196 (diff) | |
| download | krb5-a7b5808b5df9e54ef8a8a7ac24e5faad458ddbce.tar.gz krb5-a7b5808b5df9e54ef8a8a7ac24e5faad458ddbce.tar.xz krb5-a7b5808b5df9e54ef8a8a7ac24e5faad458ddbce.zip | |
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).
Diffstat (limited to 'src/plugins/kdb/db2')
| -rw-r--r-- | src/plugins/kdb/db2/kdb_db2.c | 11 |
1 files changed, 5 insertions, 6 deletions
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; } |
