]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix SNMP typedefs
authorwessels <>
Fri, 17 Apr 1998 00:32:53 +0000 (00:32 +0000)
committerwessels <>
Fri, 17 Apr 1998 00:32:53 +0000 (00:32 +0000)
src/structs.h
src/typedefs.h

index 688d3c2ee10f14f7c1ab75a3f5fc5f4aefe3051b..aa4cfcf5e54babe17d8d0b7731429a2a32b68bc1 100644 (file)
@@ -67,7 +67,7 @@ struct _String {
 
 #if SQUID_SNMP
 
-typedef struct _snmp_request_t {
+struct _snmp_request_t {
     u_char *buf;
     u_char *outbuf;
     int len;
@@ -78,26 +78,26 @@ typedef struct _snmp_request_t {
     struct snmp_pdu *PDU;
     aclCheck_t *acl_checklist;
     u_char *community;
-} snmp_request_t;
+};
 
-typedef struct _viewEntry {
+struct _viewEntry {
     char viewName[32];
     int viewIndex;
     int viewType;
     int viewSubtreeLen;
     oid viewSubtree[32];
     struct _viewEntry *next;
-} viewEntry;
+};
 
-typedef struct _communityEntry {
+struct _communityEntry {
     char name[64];
     int readView;
     int writeView;
     acl_access *acls;
     communityEntry *next;
-} communityEntry;
+};
 
-typedef usecEntry {
+struct _usecEntry {
     u_char userName[32];
     int userLen;
     int qoS;
@@ -108,7 +108,7 @@ typedef usecEntry {
     int authReadView;
     int authWriteView;
     usecEntry *next;
-} usecEntry;
+};
 
 #endif
 
index b6da2ee85f2c8013c7b5bf087c85cd764ac0679e..5481e0f6a82efc9da8e9ecfcdf58f6466e0e0b8f 100644 (file)
@@ -118,6 +118,13 @@ typedef struct _cd_guess_stats cd_guess_stats;
 typedef struct _CacheDigest CacheDigest;
 typedef struct _Version Version;
 
+#if SQUID_SNMP
+typedef struct _snmp_request_t snmp_request_t;
+typedef struct _viewEntry viewEntry;
+typedef struct _communityEntry communityEntry;
+typedef struct _usecEntry usecEntry;
+#endif
+
 /* define AIOCB even without USE_ASYNC_IO */
 typedef void AIOCB(void *, int aio_return, int aio_errno);
 typedef void CWCB(int fd, char *, size_t size, int flag, void *data);