From: Wouter Wijngaards Date: Tue, 11 Sep 2018 13:19:55 +0000 (+0000) Subject: - Fixed unused return value warnings in contrib/fastrpz.patch for X-Git-Tag: release-1.8.1rc1~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00982fc3db81c2aa39c7cf08514324eec3fc261c;p=thirdparty%2Funbound.git - Fixed unused return value warnings in contrib/fastrpz.patch for asprintf. git-svn-id: file:///svn/unbound/trunk@4891 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/contrib/fastrpz.patch b/contrib/fastrpz.patch index b80eeb2bb..8f079f272 100644 --- a/contrib/fastrpz.patch +++ b/contrib/fastrpz.patch @@ -3269,7 +3269,7 @@ Index: unbound-1.7.0~rc1/util/configparser.y + + OUTYY(("P(rpz_zone:%s)\n", $2)); + old_cstr = cfg_parser->cfg->rpz_cstr; -+ asprintf(&new_cstr, "%s\nzone %s", old_cstr?old_cstr:"", $2); ++ (void)asprintf(&new_cstr, "%s\nzone %s", old_cstr?old_cstr:"", $2); + if(!new_cstr) + yyerror("out of memory"); + free(old_cstr); @@ -3282,7 +3282,7 @@ Index: unbound-1.7.0~rc1/util/configparser.y + + OUTYY(("P(rpz_option:%s)\n", $2)); + old_cstr = cfg_parser->cfg->rpz_cstr; -+ asprintf(&new_cstr, "%s\n%s", old_cstr ? old_cstr : "", $2); ++ (void)asprintf(&new_cstr, "%s\n%s", old_cstr ? old_cstr : "", $2); + if(!new_cstr) + yyerror("out of memory"); + free(old_cstr); diff --git a/doc/Changelog b/doc/Changelog index 279a44e15..883c32870 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +11 September 2018: Wouter + - Fixed unused return value warnings in contrib/fastrpz.patch for + asprintf. + 10 September 2018: Wouter - 1.8.1 in svn trunk. (changes from 4,5,.. sep apply). - iana port update.