X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=pysam.git;a=blobdiff_plain;f=samtools%2Fknetfile.c;fp=samtools%2Fknetfile.c;h=e1be4d669b845babe504dc1bfd2e2ccbe806f593;hp=994babb6a384e2757098bd6b042970a4dd54a801;hb=6a7c3f175b210cc16d09a5e8e4c1d47333dbe1c6;hpb=aa8ecff068edbb09a03bd874fce716e93e22e53c diff --git a/samtools/knetfile.c b/samtools/knetfile.c index 994babb..e1be4d6 100644 --- a/samtools/knetfile.c +++ b/samtools/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));