summaryrefslogtreecommitdiff
path: root/source4/lib/xfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/xfile.c')
-rw-r--r--source4/lib/xfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/xfile.c b/source4/lib/xfile.c
index e01723904f..8572bd857a 100644
--- a/source4/lib/xfile.c
+++ b/source4/lib/xfile.c
@@ -109,7 +109,7 @@ XFILE *x_fopen(const char *fname, int flags, mode_t mode)
ret->open_flags = flags;
- ret->fd = sys_open(fname, flags, mode);
+ ret->fd = open(fname, flags, mode);
if (ret->fd == -1) {
SAFE_FREE(ret);
return NULL;
@@ -379,5 +379,5 @@ off_t x_tseek(XFILE *f, off_t offset, int whence)
}
f->flags &= ~X_FLAG_EOF;
- return (off_t)sys_lseek(f->fd, offset, whence);
+ return lseek(f->fd, offset, whence);
}