Fixed warning on amd64.
authorLadislav Láska <ladislav.laska@gmail.com>
Tue, 12 Oct 2010 13:44:54 +0000 (15:44 +0200)
committerLadislav Láska <ladislav.laska@gmail.com>
Tue, 12 Oct 2010 13:44:54 +0000 (15:44 +0200)
main.c

diff --git a/main.c b/main.c
index 8200be56bb29f23e25d876f347ae9a3bf5b9a802..9598d2ecb3b6411ff5c284626e64e8e7b5776d2d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -105,7 +105,7 @@ int check( char * hostname, char *service ) {
 
        /* Connect to server */
 
-       int fd = tcp_open( hostname, service );
+       long fd = tcp_open( hostname, service );
        
        if (fd == -1) {
                state= S_UNREACHABLE;