projects
/
samtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Uploaded 0.1.15-1 to Sid.
[samtools.git]
/
knetfile.c
diff --git
a/knetfile.c
b/knetfile.c
index 1e2c042701de0fec88212f563ff4862da6fcad93..af091465862c238aefeb3d0562b03f75320b6c1d 100644
(file)
--- a/
knetfile.c
+++ b/
knetfile.c
@@
-1,6
+1,7
@@
/* The MIT License
/* The MIT License
- Copyright (c) 2008 Genome Research Ltd (GRL).
+ Copyright (c) 2008 by Genome Research Ltd (GRL).
+ 2010 by Attractive Chaos <attractor@live.co.uk>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@
-23,11
+24,9
@@
SOFTWARE.
*/
SOFTWARE.
*/
-/* Contact: Heng Li <lh3@sanger.ac.uk> */
-
/* Probably I will not do socket programming in the next few years and
therefore I decide to heavily annotate this file, for Linux and
/* Probably I will not do socket programming in the next few years and
therefore I decide to heavily annotate this file, for Linux and
- Windows as well. -
lh3
*/
+ Windows as well. -
ac
*/
#include <time.h>
#include <stdio.h>
#include <time.h>
#include <stdio.h>
@@
-90,7
+89,7
@@
static int socket_connect(const char *host, const char *port)
int on = 1, fd;
struct linger lng = { 0, 0 };
int on = 1, fd;
struct linger lng = { 0, 0 };
- struct addrinfo hints, *res;
+ struct addrinfo hints, *res
= 0
;
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;