Skip to content

Commit

Permalink
Merge pull request #81 from gjasny/fix-compiler-warnings
Browse files Browse the repository at this point in the history
Fix compiler warnings
  • Loading branch information
sgodin committed Jul 13, 2017
2 parents 59732f0 + 358729f commit df93a44
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions rutil/Data.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,6 @@ Data::Data(Data &&data)
// -2147483646
static const int Int32MaxSize = 11;

static const int MaxLongSize = (sizeof(unsigned long)/sizeof(int))*Int32MaxSize;

// 18446744073709551615
static const int UInt64MaxSize = 20;

Expand Down
2 changes: 1 addition & 1 deletion rutil/dns/ares/ares_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ static void init_by_defaults_apple_nameservers(ares_channel channel)
channel->nservers = 0;
// .amr. iPhone/iOS SDK's don't support SCDynamicStoreCreate so in that case fall back
// to the nservers=0 case.
#ifndef TARGET_OS_IPHONE
#if !TARGET_OS_IPHONE
store = SCDynamicStoreCreate(NULL, CFSTR("init_by_defaults_apple_nameservers"), NULL, &context);

if (store)
Expand Down
2 changes: 1 addition & 1 deletion rutil/dns/ares/ares_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ static void read_udp_packets(ares_channel channel, int server_idx,
continue;
/* Make sure the server has a socket and is selected in read_fds. */
server = &channel->servers[i];
if ( (server->udp_socket == -1) )
if ( server->udp_socket == -1 )
continue;
if ( read_fds && !FD_ISSET(server->udp_socket, read_fds) )
continue;
Expand Down

0 comments on commit df93a44

Please sign in to comment.