aboutsummaryrefslogtreecommitdiff
path: root/src/util/support/plugins.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-10-20 16:52:29 -0400
committerGreg Hudson <ghudson@mit.edu>2012-12-19 12:15:46 -0500
commitd9abacfd82b3336d133d12ed117173a1b6c0ba54 (patch)
tree6272f93d8f97ae2c3726a6854777fc4fa357c5ab /src/util/support/plugins.c
parent296c51d3208ddc37b64f5a0b06812e2705995c4b (diff)
downloadkrb5-d9abacfd82b3336d133d12ed117173a1b6c0ba54.zip
krb5-d9abacfd82b3336d133d12ed117173a1b6c0ba54.tar.gz
krb5-d9abacfd82b3336d133d12ed117173a1b6c0ba54.tar.bz2
Style cleanup for internal error handling
Fix style issues in kerrs.c and errors.c. Rename error handling functions to use shorter k5_ prefix. Eliminate an inoperable krb5int_set_error() call in gic_opte_alloc and convert the other call to use krb5_set_error_message().
Diffstat (limited to 'src/util/support/plugins.c')
-rw-r--r--src/util/support/plugins.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c
index 02e37ee..608d03c 100644
--- a/src/util/support/plugins.c
+++ b/src/util/support/plugins.c
@@ -174,8 +174,8 @@ krb5int_open_plugin (const char *filepath, struct plugin_file_handle **h, struct
if (stat (filepath, &statbuf) < 0) {
err = errno;
Tprintf ("stat(%s): %s\n", filepath, strerror (err));
- krb5int_set_error(ep, err, _("unable to find plugin [%s]: %s"),
- filepath, strerror(err));
+ k5_set_error(ep, err, _("unable to find plugin [%s]: %s"),
+ filepath, strerror(err));
}
}
@@ -270,8 +270,8 @@ krb5int_open_plugin (const char *filepath, struct plugin_file_handle **h, struct
e = _("unknown failure");
Tprintf ("dlopen(%s): %s\n", filepath, e);
err = ENOENT; /* XXX */
- krb5int_set_error(ep, err, _("unable to load plugin [%s]: %s"),
- filepath, e);
+ k5_set_error(ep, err, _("unable to load plugin [%s]: %s"),
+ filepath, e);
}
}
@@ -293,7 +293,7 @@ krb5int_open_plugin (const char *filepath, struct plugin_file_handle **h, struct
if (handle == NULL) {
Tprintf ("Unable to load dll: %s\n", filepath);
err = ENOENT; /* XXX */
- krb5int_set_error(ep, err, _("unable to load DLL [%s]"), filepath);
+ k5_set_error(ep, err, _("unable to load DLL [%s]"), filepath);
}
if (!err) {
@@ -309,7 +309,7 @@ krb5int_open_plugin (const char *filepath, struct plugin_file_handle **h, struct
if (!err && !got_plugin) {
err = ENOENT; /* no plugin or no way to load plugins */
- krb5int_set_error(ep, err, _("plugin unavailable: %s"), strerror(err));
+ k5_set_error(ep, err, _("plugin unavailable: %s"), strerror(err));
}
if (!err) {
@@ -341,7 +341,7 @@ krb5int_get_plugin_sym (struct plugin_file_handle *h,
e = "unknown failure";
Tprintf ("dlsym(%s): %s\n", csymname, e);
err = ENOENT; /* XXX */
- krb5int_set_error(ep, err, "%s", e);
+ k5_set_error(ep, err, "%s", e);
}
}
#endif
@@ -356,7 +356,7 @@ krb5int_get_plugin_sym (struct plugin_file_handle *h,
const char *e = "unable to get dll symbol"; /* XXX copy and save away */
Tprintf ("GetProcAddress(%s): %i\n", csymname, GetLastError());
err = ENOENT; /* XXX */
- krb5int_set_error(ep, err, "%s", e);
+ k5_set_error(ep, err, "%s", e);
dw = GetLastError();
if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |