aboutsummaryrefslogtreecommitdiff
path: root/libbb/wfopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/wfopen.c')
-rw-r--r--libbb/wfopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/wfopen.c b/libbb/wfopen.c
index f58ec90c0..22f22b373 100644
--- a/libbb/wfopen.c
+++ b/libbb/wfopen.c
@@ -23,11 +23,11 @@
23#include <errno.h> 23#include <errno.h>
24#include "libbb.h" 24#include "libbb.h"
25 25
26FILE *wfopen(const char *path, const char *mode) 26FILE *bb_wfopen(const char *path, const char *mode)
27{ 27{
28 FILE *fp; 28 FILE *fp;
29 if ((fp = fopen(path, mode)) == NULL) { 29 if ((fp = fopen(path, mode)) == NULL) {
30 perror_msg("%s", path); 30 bb_perror_msg("%s", path);
31 errno = 0; 31 errno = 0;
32 } 32 }
33 return fp; 33 return fp;