]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - snmplib/parse.c
SourceFormat Enforcement
[thirdparty/squid.git] / snmplib / parse.c
index a9316d1490ead3135b5256f80e8a693c7f09cf01..02fe588e7641a0a253deb0847ce83ce82decf260 100644 (file)
@@ -24,6 +24,13 @@ SOFTWARE.
  * parse.c
  */
 #include "squid.h"
+#include "asn1.h"
+#include "cache_snmp.h"
+#include "parse.h"
+#include "snmp_debug.h"
+#include "snmp_pdu.h"
+#include "snmp_vars.h"
+#include "util.h"
 
 #include <stdio.h>
 
@@ -78,14 +85,6 @@ SOFTWARE.
 #include <errno.h>
 #endif
 
-#include "asn1.h"
-#include "snmp_vars.h"
-#include "parse.h"
-#include "snmp_debug.h"
-
-#include "util.h"
-
-#include "cache_snmp.h"
 /*
  * This is one element of an object identifier with either an integer subidentifier,
  * or a textual string label, or both.
@@ -163,7 +162,6 @@ struct tok {
     struct tok *next;          /* pointer to next in hash table */
 };
 
-
 struct tok tokens[] = {
     {"obsolete", sizeof("obsolete") - 1, OBSOLETE},
     {"Opaque", sizeof("Opaque") - 1, SNMP_OPAQUE},
@@ -260,7 +258,6 @@ init_node_hash(struct node *nodes)
     }
 }
 
-
 static void
 print_error(const char *string, const char *token, int type)
 {
@@ -472,7 +469,6 @@ build_tree(struct node *nodes) {
     return tp;
 }
 
-
 /*
  * Parses a token from the file.  The type of the token parsed is returned,
  * and the text is placed in the string pointed to by token.
@@ -613,7 +609,6 @@ getoid(register FILE *fp, register struct subid *SubOid, int length)
     }
     return count;
 
-
 }
 
 static void
@@ -971,7 +966,6 @@ parse_objecttype(register FILE *fp, char *name) {
     return np;
 }
 
-
 /*
  * Parses a mib file and returns a linked list of nodes found in the file.
  * Returns NULL on error.