/*
- * $Id: cf_gen.cc,v 1.20 1998/02/10 22:17:53 wessels Exp $
+ * $Id: cf_gen.cc,v 1.21 1998/03/16 20:11:50 wessels Exp $
*
* DEBUG: none
* AUTHOR: Max Okumoto
{
Entry *entry;
fprintf(fp,
- "void\n"
+ "static void\n"
"dump_config(StoreEntry *entry)\n"
"{\n"
);
/*
- * $Id: http.cc,v 1.253 1998/03/16 17:03:26 wessels Exp $
+ * $Id: http.cc,v 1.254 1998/03/16 20:11:51 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
static CNCB httpConnectDone;
static CWCB httpSendComplete;
-static void *sendHeaderDone;
+static CWCB *sendHeaderDone;
static CWCB httpSendRequestEntry;
static PF httpReadReply;
{
communityEntry *cp;
for (cp = Config.Snmp.communities; cp != NULL; cp = cp->next)
- if (!strcmp(rq->community, cp->name) && cp->acls) {
+ if (!strcmp((char *)rq->community, cp->name) && cp->acls) {
rq->acl_checklist = aclChecklistCreate(cp->acls,
NULL, rq->from.sin_addr, NULL, NULL);
aclNBCheck(rq->acl_checklist, snmpAclCheckDone, rq);
debug(49, 5) ("snmpAclCheckDone: checking.\n");
/* access check for each variable */
- if (!community_check(Community, VarPtr->name, VarPtr->name_length)) {
+ if (!community_check((char *)Community, VarPtr->name, VarPtr->name_length)) {
debug(49, 5) ("snmpAclCheckDone: failed on community_check.\n");
snmp_agent_parse_done(0, rq);
return;
}
}
Session->community = Community;
- Session->community_len = strlen(Community);
+ Session->community_len = strlen((char *)Community);
RespPDU = snmp_agent_response(PDU);
snmp_free_pdu(PDU);
if (RespPDU == NULL) {
/*
- * $Id: stat.cc,v 1.216 1998/03/12 17:51:21 wessels Exp $
+ * $Id: stat.cc,v 1.217 1998/03/16 20:11:53 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
static StatCounters CountHourHist[N_COUNT_HOUR_HIST];
static int NCountHourHist = 0;
-void
+static void
statUtilization(StoreEntry * e)
{
storeAppendPrintf(e, "Cache Utilisation:\n");
statCountersDump(e);
}
-void
+static void
stat_io_get(StoreEntry * sentry)
{
int i;
}
}
-void
+static void
stat_objects_get(StoreEntry * e)
{
statObjects(e, 0);
}
-void
+static void
stat_vmobjects_get(StoreEntry * e)
{
statObjects(e, 1);
return buf;
}
-void
+static void
statFiledescriptors(StoreEntry * sentry)
{
int i;
}
}
-void
+static void
info_get(StoreEntry * sentry)
{
struct rusage rusage;
}
/* add special cases here as they arrive */
-void
+static void
statCountersClean(StatCounters * C)
{
assert(C);
}
/* add special cases here as they arrive */
-void
+static void
statCountersCopy(StatCounters * dest, const StatCounters * orig)
{
assert(dest && orig);
tvSubDsec(f->timestamp, current_time));
}
-void
+static void
statCounters(StoreEntry * e)
{
statCountersDump(e);
}
-void
+static void
statAvg5min(StoreEntry * e)
{
statAvgDump(e, 5, 0);
}
-void
+static void
statAvg60min(StoreEntry * e)
{
statAvgDump(e, 60, 0);
};
struct _snmp_request_t {
- char *buf;
- char *outbuf;
+ u_char *buf;
+ u_char *outbuf;
int len;
int sock;
long reqid;
struct sockaddr_in from;
struct snmp_pdu *PDU;
aclCheck_t *acl_checklist;
- char *community;
+ u_char *community;
};
typedef struct _viewEntry {