summaryrefslogtreecommitdiff
path: root/src/htslib.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-07-17 18:39:16 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-07-17 18:39:16 +0000
commitd71237d177dd6a8cbe01e41ce79584f762f8b7a3 (patch)
tree18f26d5a511306f37996f04774426ebdfddb5b5b /src/htslib.h
parent7f8eb5f60f510a309f2d168a2cdd12c4e5d3e413 (diff)
Cache cleanup. Added assert()
Diffstat (limited to 'src/htslib.h')
-rw-r--r--src/htslib.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/htslib.h b/src/htslib.h
index 9a5cac9..fcfce4b 100644
--- a/src/htslib.h
+++ b/src/htslib.h
@@ -148,12 +148,10 @@ struct OLD_htsblk {
typedef struct t_dnscache t_dnscache;
#endif
struct t_dnscache {
- struct t_dnscache *n;
- int host_length; // 4 normalement - ==0 alors en cours de résolution
- char host_addr[HTS_MAXADDRLEN]; // 4 octets (v4), ou 16 octets (v6)
- // ou >16 si sockaddr
- // ==-1 alors erreur (host n'éxiste pas)
- char iadr[1024];
+ struct t_dnscache *next;
+ const char *iadr;
+ size_t host_length; // length ; (4 or 16) ; 0 for error
+ char host_addr[HTS_MAXADDRLEN];
};
/* Library internal definictions */