projects
/
samtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added notes on how the package is tested.
[samtools.git]
/
knetfile.c
diff --git
a/knetfile.c
b/knetfile.c
index 994babb6a384e2757098bd6b042970a4dd54a801..e1be4d669b845babe504dc1bfd2e2ccbe806f593 100644
(file)
--- a/
knetfile.c
+++ b/
knetfile.c
@@
-38,9
+38,7
@@
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
-#ifdef _WIN32
-#include <winsock.h>
-#else
+#ifndef _WIN32
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/socket.h>
@@
-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;
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));
}
errno = EINVAL;
fprintf(stderr,"[knet_seek] %s\n", strerror(errno));