mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:40:11 +03:00
Use strerror_r outside of log functions to avoid warnings.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
702e987505
commit
ed4877c27c
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue