diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-08 13:02:43 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-08 13:02:43 +0000 |
commit | 6d1544383e5c6cbf33dab7526e489a7bf58aacd3 (patch) | |
tree | 1e09d693337a6bedde4a15d6afa1f2c83e65a345 /src/httrack.c | |
parent | cd268fd39ed5c64dd1c6b16e3284f10b79bf982b (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/httrack.c')
-rw-r--r-- | src/httrack.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/httrack.c b/src/httrack.c index 020d4f8..e8e5cd3 100644 --- a/src/httrack.c +++ b/src/httrack.c @@ -223,6 +223,15 @@ int main(int argc, char **argv) { signal_handlers(); hts_init(); + + // Check version compatibility + if (hts_sizeof_opt() != sizeof(httrackp)) { + fprintf(stderr, + "incompatible current httrack library version %s, expected version %s", + hts_version(), HTTRACK_VERSIONID); + abortLog("incompatible httrack library version, please update both httrack and its library"); + } + opt = global_opt = hts_create_opt(); assert(opt->size_httrackp == sizeof(httrackp)); |