diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-28 12:51:17 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 02:39:08 +0200 |
commit | b74fe73a6fb5862121235f18bc1dfe538e6ceaed (patch) | |
tree | 34a3f09ad3f0565a90fe13e735daecb44e779795 /source3/lib | |
parent | d166b798529dab4538054d0b68797c0cc17f34de (diff) | |
download | samba-b74fe73a6fb5862121235f18bc1dfe538e6ceaed.tar.gz samba-b74fe73a6fb5862121235f18bc1dfe538e6ceaed.tar.xz samba-b74fe73a6fb5862121235f18bc1dfe538e6ceaed.zip |
build: Remove sys_fopen wrapper
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/smbconf/testsuite.c | 2 | ||||
-rw-r--r-- | source3/lib/system.c | 10 |
2 files changed, 1 insertions, 11 deletions
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 */ |