]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - include/snmp_util.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / include / snmp_util.h
index d9be9146ff91a9a090f5f2d79da93a17e80a9734..b138376aa77fadb22707131840c5c264b7a5bc07 100644 (file)
@@ -1,90 +1,59 @@
-#ifndef SNMP_UTIL_H
-#define SNMP_UTIL_H
-
-
-#undef _ANSI_ARGS_
-#if (defined(__STDC__) && ! defined(NO_PROTOTYPE)) || defined(USE_PROTOTYPE)
-# define _ANSI_ARGS_(x) x
-#else
-# define _ANSI_ARGS_(x) ()
-#endif
-
-
 /*
- * call a function at regular intervals (in seconds):
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
-extern void snmp_alarm _ANSI_ARGS_((int ival, void (*handler) (void)));
 
+#ifndef SQUID_SNMP_UTIL_H
+#define SQUID_SNMP_UTIL_H
 
-/*
- * service for filedescriptors:
- */
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-extern void fd_add _ANSI_ARGS_((int fd, void (*func)(int fd)));
-extern void fd_service _ANSI_ARGS_((void));
+/* call a function at regular intervals (in seconds): */
+extern void snmp_alarm(int ival, void (*handler) (void));
 
+/* service for filedescriptors: */
+
+extern void fd_add(int fd, void (*func) (int fd));
+extern void fd_service(void);
 
 /* ---------------------------------------------------------------------- */
 
 /*
-**  SNMP Agent extension for Spacer-Controler Management
-**
-**  Copyright (c) 1997 FT/CNET/DES/GRL Olivier Montanuy
-** 
-*/
-/*
-** Function to safely copy a string, and ensure the last
-** character is always '\0'.
-*/
-void
-strcpy_safe _ANSI_ARGS_((char *str, int str_len, char *val));
+ * SNMP Agent extension for Spacer-Controler Management
+ *
+ * Copyright (c) 1997 FT/CNET/DES/GRL Olivier Montanuy
+ */
 
+/* Function to safely copy a string, and ensure the last
+ * character is always '\0'. */
+void strcpy_safe(char *str, int str_len, char *val);
 
-/*
-** Function to get IP address of this agent
-** WARNING: this scans all interfaces (slow)
-*/
-u_long 
-Util_local_ip_address _ANSI_ARGS_((void));
+/* Function to get IP address of this agent
+ * WARNING: this scans all interfaces (slow) */
+u_long Util_local_ip_address(void);
 
-/*
-** Function to get the current time in seconds
-*/
-long 
-Util_time_now _ANSI_ARGS_((void));
-
-/*
-** Function to determine how long the agent has been running
-*  (WARNING: this seems rather slow)
-*/
-long 
-Util_time_running();
+/* Function to get the current time in seconds */
+long Util_time_now(void);
 
-/*
-** Read data from file
-*/
-int
-Util_file_read _ANSI_ARGS_((char *file, int offset, char *data, int dataSz));
+/* Function to determine how long the agent has been running
+ * (WARNING: this seems rather slow) */
+long Util_time_running();
 
-/*
-** Write data into file
-*/
-int
-Util_file_write _ANSI_ARGS_((char *file, int offset, char *data, int dataSz));
+/* Read data from file */
+int Util_file_read(char *file, int offset, char *data, int dataSz);
 
+/* Write data into file */
+int Util_file_write(char *file, int offset, char *data, int dataSz);
 
 /* ---------------------------------------------------------------------- */
 
-
-
-
-
-
-
-
-
-
-
-
-
+#ifdef __cplusplus
+}
 #endif
+#endif /* SQUID_SNMP_UTIL_H */
+