From 1fb844699cd4f45a334fdd6c4fdcf8c61c99a154 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Fri, 21 Nov 1997 11:45:33 +0000 Subject: [PATCH] more SNMP compiler cleanup, typedefs, etc --- include/snmp_vars.h | 5 ++++- src/Makefile.in | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/snmp_vars.h b/include/snmp_vars.h index 7ff8e55fcb..fab8622073 100644 --- a/include/snmp_vars.h +++ b/include/snmp_vars.h @@ -271,13 +271,16 @@ struct inpcb { extern void TCP_Scan_Init(); extern int TCP_Scan_Next(); +typedef struct variable variable; +typedef int SNMPWM(int, u_char *, u_char, int, u_char *, oid *, int); +typedef u_char *SNMPFV(variable *, oid *, int *, int, int *, SNMPWM **); struct variable { u_char magic; /* passed to function as a hint */ char type; /* type of variable */ /* See important comment in snmp_vars.c relating to acl */ u_short acl; /* access control list for variable */ - u_char *(*findVar) (); /* function that finds variable */ + SNMPFV *findVar; /* function that finds variable */ u_char namelen; /* length of above */ oid name[32]; /* object identifier of variable */ }; diff --git a/src/Makefile.in b/src/Makefile.in index 94054e1a66..82ce873074 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -1,7 +1,7 @@ # # Makefile for the Squid Object Cache server # -# $Id: Makefile.in,v 1.98 1997/11/21 00:47:54 wessels Exp $ +# $Id: Makefile.in,v 1.99 1997/11/21 04:45:34 wessels Exp $ # # Uncomment and customize the following to suit your needs: # @@ -129,6 +129,7 @@ OBJS = \ redirect.o \ refresh.o \ send-announce.o \ + $(SNMP_OBJS) \ ssl.o \ stack.o \ stat.o \ @@ -144,7 +145,6 @@ OBJS = \ url.o \ useragent.o \ wais.o \ - $(SNMP_OBJS) \ $(XTRA_OBJS) SNMP_OBJS = \ -- 2.47.2