From 9e3da0fd3fa5f59914700ab66db2196628d865b5 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Wed, 6 Jul 2016 05:01:54 +0300 Subject: [PATCH] sxmp: deprecated use if sys_strerror removed; --- sxmp/hub.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sxmp/hub.c b/sxmp/hub.c index 944173d..25aa793 100644 --- a/sxmp/hub.c +++ b/sxmp/hub.c @@ -657,17 +657,17 @@ int sxhub_setsslserts(sxhub_t *ssys, const char *rootca, /* check on existence of certificate files */ if (access(rootca, R_OK) == -1) { ssys->log(SXERROR_LOG, "Unable to read rootca file '%s': %s\n", - rootca, sys_errlist[errno]); + rootca, strerror(errno)); return ENOENT; } if (access(certpem, R_OK) == -1) { ssys->log(SXERROR_LOG, "Unable to read certpem file '%s': %s\n", - certpem, sys_errlist[errno]); + certpem, strerror(errno)); return ENOENT; } if (access(certkey, R_OK) == -1) { ssys->log(SXERROR_LOG, "Unable to read certkey file '%s': %s\n", - certkey, sys_errlist[errno]); + certkey, strerror(errno)); return ENOENT; } @@ -675,19 +675,19 @@ int sxhub_setsslserts(sxhub_t *ssys, const char *rootca, int r; if (NULL == (ssys->rootca = realpath(rootca, NULL))) { ssys->log(SXERROR_LOG, "Unable to obtain the full path of '%s': %s\n", - rootca, sys_errlist[errno]); + rootca, strerror(errno)); if (errno == ENOMEM) r = errno; goto __fail; } if (NULL == (ssys->certpem = realpath(certpem, NULL))) { ssys->log(SXERROR_LOG, "Unable to obtain the full path of '%s': %s\n", - certpem, sys_errlist[errno]); + certpem, strerror(errno)); if (errno == ENOMEM) r = errno; goto __fail; } if (NULL == (ssys->certkey = realpath(certkey, NULL))) { ssys->log(SXERROR_LOG, "Unable to obtain the full path of '%s': %s\n", - certkey, sys_errlist[errno]); + certkey, strerror(errno)); if (errno == ENOMEM) r = errno; goto __fail; }