summaryrefslogtreecommitdiff
path: root/src/libstddjb/seek_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/seek_set.c')
-rw-r--r--src/libstddjb/seek_set.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstddjb/seek_set.c b/src/libstddjb/seek_set.c
index b5883ac..70f6b0d 100644
--- a/src/libstddjb/seek_set.c
+++ b/src/libstddjb/seek_set.c
@@ -4,10 +4,7 @@
#include <unistd.h>
#include <skalibs/djbunix.h>
-#define SET 0 /* sigh */
-
int seek_set (int fd, long pos)
{
- if (lseek(fd, (off_t) pos, SET) == -1) return -1 ;
- return 0 ;
+ return lseek(fd, (off_t) pos, SEEK_SET) ;
}