From b74fe73a6fb5862121235f18bc1dfe538e6ceaed Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Mar 2012 12:51:17 +1100 Subject: build: Remove sys_fopen wrapper --- source3/lib/smbconf/testsuite.c | 2 +- source3/lib/system.c | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/smbconf/testsuite.c b/source3/lib/smbconf/testsuite.c index 9e679362a32..5638fd24540 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 f22215d2a18..421beb53fd2 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 */ -- cgit