Use strerror_r outside of log functions to avoid warnings.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Klaas Freitag 2013-08-01 12:57:04 +02:00 committed by Andreas Schneider
parent 702e987505
commit ed4877c27c
2 changed files with 4 additions and 4 deletions

View file

@ -306,9 +306,9 @@ int main(int argc, char **argv) {
if (arguments.exclude_file != NULL) {
if (csync_add_exclude_list(csync, arguments.exclude_file) < 0) {
strerror_r(errno, errbuf, sizeof(errbuf));
fprintf(stderr, "csync_add_exclude_list - %s: %s\n",
arguments.exclude_file,
strerror_r(errno, errbuf, sizeof(errbuf)));
arguments.exclude_file, errbuf);
rc = 1;
goto out;
}

View file

@ -355,10 +355,10 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
goto out;
break;
default:
strerror_r(errno, errbuf, sizeof(errbuf));
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR,
"file: %s, command: close, error: %s",
turi,
strerror_r(errno, errbuf, sizeof(errbuf)));
turi, errbuf);
break;
}
}