Code

Code cleanup
[nagiosplug.git] / plugins / netutils.h.in
index be4ae2415904bcb7d91418c0181e48161e42d456..69cf2781b9d5e5e92049c8ec7e5aa4be82ca6f5e 100644 (file)
 #undef HAVE_STRINGS_H
 #undef HAVE_STRING_H
 
-#include <sys/socket.h>
+#include "config.h"
+#include "common.h"
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#include <netdb.h>
 
 void socket_timeout_alarm_handler (int);
 
 int process_tcp_request2 (char *address, int port, char *sbuffer,
-                                                                                                       char *rbuffer, int rsize);
+       char *rbuffer, int rsize);
 int process_tcp_request (char *address, int port, char *sbuffer,
-                                                                                                char *rbuffer, int rsize);
+       char *rbuffer, int rsize);
 int process_udp_request (char *address, int port, char *sbuffer,
-                                                                                                char *rbuffer, int rsize);
+       char *rbuffer, int rsize);
 int process_request (char *address, int port, char *proto, char *sbuffer,
-                                                                                char *rbuffer, int rsize);
+       char *rbuffer, int rsize);
 
 int my_tcp_connect (char *address, int port, int *sd);
 int my_udp_connect (char *address, int port, int *sd);
-int my_connect (char *address, int port, int *sd, char *proto);
-
-int my_inet_aton (register const char *cp, struct in_addr *addr);
+int my_connect (char *address, int port, int *sd, int proto);
 
-#ifndef DEFAULT_SOCKET_TIMEOUT
-#include "config.h"
-#include "common.h"
-#endif
 int socket_timeout = DEFAULT_SOCKET_TIMEOUT;