aboutsummaryrefslogtreecommitdiff
path: root/plugins/netutils.h
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-08 16:49:32 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-08-08 16:49:32 +0000
commit930650812a19245a8d45853064e8fe32d87f71f2 (patch)
tree17146c824e305cf399257ce4dbd546e5e0f63183 /plugins/netutils.h
parent45b8e6933cb118565efd8807ca8d80ed8e7422f4 (diff)
downloadmonitoring-plugins-930650812a19245a8d45853064e8fe32d87f71f2.tar.gz
cleanups from pedantic complier warnings
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@666 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r--plugins/netutils.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h
index f5df7af6..c560f449 100644
--- a/plugins/netutils.h
+++ b/plugins/netutils.h
@@ -36,27 +36,27 @@
RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn));
-int process_tcp_request2 (char *address, int port, char *sbuffer,
- char *rbuffer, int rsize);
-int process_tcp_request (char *address, int port, char *sbuffer,
- char *rbuffer, int rsize);
-int process_udp_request (char *address, int port, char *sbuffer,
- char *rbuffer, int rsize);
-int process_request (char *address, int port, int proto, char *sbuffer,
- char *rbuffer, int rsize);
+int process_tcp_request2 (const char *address, int port,
+ const char *sbuffer, char *rbuffer, int rsize);
+int process_tcp_request (const char *address, int port,
+ const char *sbuffer, char *rbuffer, int rsize);
+int process_udp_request (const char *address, int port,
+ const char *sbuffer, char *rbuffer, int rsize);
+int process_request (const char *address, int port, int proto,
+ const char *sbuffer, 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, int proto);
+int my_tcp_connect (const char *address, int port, int *sd);
+int my_udp_connect (const char *address, int port, int *sd);
+int my_connect (const char *address, int port, int *sd, int proto);
-int is_host (char *);
-int is_addr (char *);
-int resolve_host_or_addr (char *, int);
-int is_inet_addr (char *);
+int is_host (const char *);
+int is_addr (const char *);
+int resolve_host_or_addr (const char *, int);
+int is_inet_addr (const char *);
#ifdef USE_IPV6
-int is_inet6_addr (char *);
+int is_inet6_addr (const char *);
#endif
-int is_hostname (char *);
+int is_hostname (const char *);
extern unsigned int socket_timeout;
extern int econn_refuse_state;