mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 14:25:07 -05:00
Quash a load of compile warnings
Kevin Lyda writes: I enclose the following patch which removes all but three of the warnings. i don't have any non-linux systems handy to test a fix to the round() function. but having it return a double should be fine. It doesn't actually fix anything, it just shuts up -Wall, so it's certainly an optional type of patch.
This commit is contained in:
committed by
Richard P. Curnow
parent
3a8f93792b
commit
2a30c56f03
@@ -39,7 +39,7 @@ unsigned long
|
||||
DNS_Name2IPAddress(const char *name)
|
||||
{
|
||||
struct hostent *host;
|
||||
unsigned char *address0;
|
||||
char *address0;
|
||||
unsigned long result;
|
||||
|
||||
host = gethostbyname(name);
|
||||
|
||||
Reference in New Issue
Block a user