X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=knetfile.c;h=e1be4d669b845babe504dc1bfd2e2ccbe806f593;hb=4c8c9dfc1e3b3b066a62a703fd3ba04db6ad5a45;hp=994babb6a384e2757098bd6b042970a4dd54a801;hpb=9dd911dc95f6439418ff8939fe182285da44620d;p=samtools.git diff --git a/knetfile.c b/knetfile.c index 994babb..e1be4d6 100644 --- a/knetfile.c +++ b/knetfile.c @@ -38,9 +38,7 @@ #include #include -#ifdef _WIN32 -#include -#else +#ifndef _WIN32 #include #include #include @@ -566,7 +564,7 @@ off_t knet_seek(knetFile *fp, int64_t off, int whence) else if (whence==SEEK_SET) fp->offset = off; fp->is_ready = 0; - return fp->offset; + return 0; } errno = EINVAL; fprintf(stderr,"[knet_seek] %s\n", strerror(errno));