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/plugins/kdb | |
parent | 6351586a771e9a99e1e946cc9a0b6a87bbb14094 (diff) | |
download | krb5-6a8da91b691b8f51ac62d8142cd2fa32a69f3d15.zip krb5-6a8da91b691b8f51ac62d8142cd2fa32a69f3d15.tar.gz krb5-6a8da91b691b8f51ac62d8142cd2fa32a69f3d15.tar.bz2 |
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/plugins/kdb')
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c index 36e6d59..fc00049 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c @@ -90,11 +90,6 @@ krb5_ldap_readpassword(krb5_context context, krb5_ldap_context *ldap_context, if (ldap_context->service_password_file) file = ldap_context->service_password_file; -#ifndef HAVE_STRERROR_R -# undef strerror_r -# define strerror_r(ERRNUM, BUF, SIZE) (strncpy(BUF, strerror(ERRNUM), SIZE), BUF[(SIZE)-1] = 0) -#endif - fptr = fopen(file, "r"); if (fptr == NULL) { st = errno; |