This is an automated email from the ASF dual-hosted git repository. billblough pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git
The following commit(s) were added to refs/heads/master by this push: new 5d48db7 Remove fprintf, set errno instead. 5d48db7 is described below commit 5d48db79bf0de36761dec7c2e9dcad45d22148bd Author: William Blough <de...@blough.us> AuthorDate: Tue Sep 1 23:59:44 2020 -0400 Remove fprintf, set errno instead. Remove the fprintf statements in the windows platform implementation of the POSIX opendir function, and set errno with the error value instead. Closes: AXIS2c-1674 --- util/src/platforms/windows/dir_windows.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util/src/platforms/windows/dir_windows.c b/util/src/platforms/windows/dir_windows.c index 4436e00..fe0e19d 100644 --- a/util/src/platforms/windows/dir_windows.c +++ b/util/src/platforms/windows/dir_windows.c @@ -51,15 +51,14 @@ axis2_opendir( if (dwErr == ERROR_FILE_NOT_FOUND || dwErr == ERROR_PATH_NOT_FOUND || dwErr == ERROR_NO_MORE_FILES || dwErr == ERROR_NOT_READY) { - fprintf(stderr, "FindFirstFile with unexpected result. Error code: %u\r\n", dwErr); - + errno = dwErr; dirp->finished = 1; } else { free(dirp); free(filespec); - fprintf(stderr, "FindFirstFile failed. Error code: %u\r\n", dwErr); + errno = dwErr; return NULL; } }