summaryrefslogtreecommitdiff
path: root/src/htsweb.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-06-08 13:02:43 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-06-08 13:02:43 +0000
commit6d1544383e5c6cbf33dab7526e489a7bf58aacd3 (patch)
tree1e09d693337a6bedde4a15d6afa1f2c83e65a345 /src/htsweb.c
parentcd268fd39ed5c64dd1c6b16e3284f10b79bf982b (diff)
Public definitions cleanup (especially for httraqt)
htsopt.h now has the following definitions: * struct htsrequest_proxy * struct htsrequest * struct htsblk * struct lien_url * struct lien_back
Diffstat (limited to 'src/htsweb.c')
-rw-r--r--src/htsweb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/htsweb.c b/src/htsweb.c
index 82f4c79..6e3f4a5 100644
--- a/src/htsweb.c
+++ b/src/htsweb.c
@@ -178,6 +178,14 @@ int main(int argc, char *argv[]) {
}
smallserver_setkey("HTTRACK_WEB", HTTRACK_WEB);
+ /* Check version compatibility */
+ if (hts_sizeof_opt() != sizeof(httrackp)) {
+ fprintf(stderr,
+ "** CRITICAL: incompatible current httrack library version %s, expected version %s",
+ hts_version(), HTTRACK_VERSIONID);
+ smallserver_setkey("HTTRACK_INCOMPATIBLE_VERSIONID", hts_version());
+ }
+
/* protected session-id */
{
char buff[1024];