Skip to content

Commit

Permalink
Merge pull request #161 from pnax/fix-build
Browse files Browse the repository at this point in the history
Fix build

Discovered while building on CentOS 7.
  • Loading branch information
Alexandre Pion committed Dec 7, 2022
2 parents 376fa86 + 5aab2b4 commit 11d694a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ END_OPENSSL_MAKE

my $openssl_flags = <<END_OPENSSL_FLAGS;
CFLAGS += -I$$opt_assets{penssl}{inc}
CFLAGS += -I$$opt_assets{openssl}{inc}
LDFLAGS += -L$$opt_assets{openssl}{lib}
END_OPENSSL_FLAGS
Expand Down
4 changes: 2 additions & 2 deletions src/LDNS.xs
Original file line number Diff line number Diff line change
Expand Up @@ -1459,15 +1459,15 @@ packet_get_nsid(obj)
#ifdef NSID_SUPPORT
ldns_edns_option_list* edns_list;
ldns_edns_option* edns_opt;
size_t count;
size_t i,count;

edns_list = ldns_pkt_edns_get_option_list(obj);
if ( edns_list == NULL )
XSRETURN_UNDEF;

RETVAL = NULL;
count = ldns_edns_option_list_get_count(edns_list);
for ( int i=0; i<count; i++ )
for ( i=0; i<count; i++ )
{
edns_opt = ldns_edns_option_list_get_option(edns_list, i);
if ( edns_opt == NULL )
Expand Down

0 comments on commit 11d694a

Please sign in to comment.