summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbconf/testsuite.c2
-rw-r--r--source3/lib/system.c10
2 files changed, 1 insertions, 11 deletions
diff --git a/source3/lib/smbconf/testsuite.c b/source3/lib/smbconf/testsuite.c
index 9e679362a3..5638fd2454 100644
--- a/source3/lib/smbconf/testsuite.c
+++ b/source3/lib/smbconf/testsuite.c
@@ -183,7 +183,7 @@ static bool create_conf_file(const char *filename)
FILE *f;
printf("TEST: creating file\n");
- f = sys_fopen(filename, "w");
+ f = fopen(filename, "w");
if (!f) {
printf("failure: failed to open %s for writing: %s\n",
filename, strerror(errno));
diff --git a/source3/lib/system.c b/source3/lib/system.c
index f22215d2a1..421beb53fd 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -584,16 +584,6 @@ int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OF
#endif
}
-/*******************************************************************
- An fopen() wrapper.
-********************************************************************/
-
-FILE *sys_fopen(const char *path, const char *type)
-{
- return fopen(path, type);
-}
-
-
#if HAVE_KERNEL_SHARE_MODES
#ifndef LOCK_MAND
#define LOCK_MAND 32 /* This is a mandatory flock */