diff options
author | Greg Hudson <ghudson@mit.edu> | 2014-07-05 10:23:11 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2014-07-08 19:19:24 -0400 |
commit | 6a8da91b691b8f51ac62d8142cd2fa32a69f3d15 (patch) | |
tree | 153f2f159c372fa9ea9ecc707e5e59951b66f226 /src/util/support/plugins.c | |
parent | 6351586a771e9a99e1e946cc9a0b6a87bbb14094 (diff) | |
download | krb5-6a8da91b691b8f51ac62d8142cd2fa32a69f3d15.tar.gz krb5-6a8da91b691b8f51ac62d8142cd2fa32a69f3d15.tar.xz krb5-6a8da91b691b8f51ac62d8142cd2fa32a69f3d15.zip |
Simplify usage of strerror_r
Take advantage of the strerror_r portability wrapper to simplify code
using it. Remove unused macros related to strerror_r in
ldap_service_stash.c and plugins.c.
ticket: 7961
Diffstat (limited to 'src/util/support/plugins.c')
-rw-r--r-- | src/util/support/plugins.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index ca4b12858..82ef97e57 100644 --- a/src/util/support/plugins.c +++ b/src/util/support/plugins.c @@ -446,15 +446,6 @@ krb5int_close_plugin (struct plugin_file_handle *h) #endif #endif - -#ifdef HAVE_STRERROR_R -#define ERRSTR(ERR, BUF) \ - (strerror_r (ERR, BUF, sizeof(BUF)) == 0 ? BUF : strerror (ERR)) -#else -#define ERRSTR(ERR, BUF) \ - (strerror (ERR)) -#endif - static long krb5int_plugin_file_handle_array_init (struct plugin_file_handle ***harray) { |