]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - include/snmp_api_error.h
SourceFormat Enforcement
[thirdparty/squid.git] / include / snmp_api_error.h
index a138bd8ed883e0d3c2e59ce3970f7d0870d26e57..6a6fe59871de11a3bec78529e5453654d79ae3dc 100644 (file)
@@ -1,4 +1,11 @@
-/* -*- c++ -*- */
+/*
+ * Copyright (C) 1996-2017 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.
+ */
+
 #ifndef SQUID_SNMP_API_ERROR_H
 #define SQUID_SNMP_API_ERROR_H
 
  *
  * Author: Ryan Troll <ryan+@andrew.cmu.edu>
  *
- * $Id: snmp_api_error.h,v 1.5 2003/01/23 00:36:47 robertc Exp $
- *
  ***************************************************************************/
 
 /* Error return values */
-#define SNMPERR_GENERR         -1
-#define SNMPERR_BAD_LOCPORT    -2      /* local port was already in use */
-#define SNMPERR_BAD_ADDRESS    -3
-#define SNMPERR_BAD_SESSION    -4
-#define SNMPERR_TOO_LONG       -5      /* data too long for provided buffer */
+#define SNMPERR_GENERR      -1
+#define SNMPERR_BAD_LOCPORT -2  /* local port was already in use */
+#define SNMPERR_BAD_ADDRESS -3
+#define SNMPERR_BAD_SESSION -4
+#define SNMPERR_TOO_LONG    -5  /* data too long for provided buffer */
 
 #define SNMPERR_ASN_ENCODE      -6
 #define SNMPERR_ASN_DECODE      -7
 #define SNMPERR_PACKET_ERR      -14
 #define SNMPERR_NO_RESPONSE     -15
 
-#define SNMPERR_LAST            -16    /* Last error message */
+#define SNMPERR_LAST            -16 /* Last error message */
 
 #ifdef __cplusplus
-extern "C"
-{
+extern "C" {
 #endif
 
-    /* extern int snmp_errno */
+/* extern int snmp_errno */
 
-    const char *snmp_api_error(int);
-    int snmp_api_errno(void);
+const char *snmp_api_error(int);
+int snmp_api_errno(void);
 
-    const char *api_errstring(int);    /* Backwards compatibility */
-    void snmp_set_api_error(int);
+const char *api_errstring(int); /* Backwards compatibility */
+void snmp_set_api_error(int);
 
 #ifdef __cplusplus
 }
 
 #endif
 
-#endif                         /* SQUID_SNMP_API_ERROR_H */
+#endif              /* SQUID_SNMP_API_ERROR_H */
+