From: Willem Toorop Date: Mon, 24 Jun 2019 13:58:04 +0000 (+0200) Subject: Some pedantic warning fixes + tpkg test fixes X-Git-Tag: release-1.7.1-rc1~23^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8f162ca1117625a53aebaebe83bd2e66077c1c6;p=thirdparty%2Fldns.git Some pedantic warning fixes + tpkg test fixes --- diff --git a/.travis.yml b/.travis.yml index 380857ec..d6dae0be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ addons: - lcov - doxygen - graphviz + - indent matrix: include: - os: linux diff --git a/contrib/python/ldns_rr.i b/contrib/python/ldns_rr.i index 726c6cd9..e5cf1c24 100644 --- a/contrib/python/ldns_rr.i +++ b/contrib/python/ldns_rr.i @@ -456,7 +456,7 @@ %{ void _ldns_rr_set_owner(ldns_rr *rr, ldns_rdf *rdf) { - return ldns_rr_set_owner(rr, ldns_rdf_clone(rdf)); + ldns_rr_set_owner(rr, ldns_rdf_clone(rdf)); } %} diff --git a/duration.c b/duration.c index 638f6c8c..bcd16365 100644 --- a/duration.c +++ b/duration.c @@ -285,7 +285,7 @@ ldns_duration2string(const ldns_duration_type* duration) str = strncat(str, num, count+2); } if (T) { - str = strncat(str, "T", 1); + str = strcat(str, "T"); } if (duration->hours > 0) { count = digits_in_number(duration->hours); diff --git a/test/01-compile.tpkg/01-compile.test b/test/01-compile.tpkg/01-compile.test index 2e56b7ff..a4d1f21e 100644 --- a/test/01-compile.tpkg/01-compile.test +++ b/test/01-compile.tpkg/01-compile.test @@ -55,7 +55,7 @@ fi || ./configure --enable-sha2 --disable-gost --with-drill --with-examples --disable-dane-ta-usage \ || ./configure --disable-sha2 --disable-gost --with-drill --with-examples --disable-dane-ta-usage - ) && $mk && rmdir -f python-site + ) && $mk && (rmdir python-site || true) ) )