|
From: Bob T. <bt...@us...> - 2003-10-08 02:59:16
|
Update of /cvsroot/benson/benson3/src
In directory sc8-pr-cvs1:/tmp/cvs-serv1669/src
Modified Files:
acknowledge.c alertlist.c btrap.c cfgctl.c utils.c
Log Message:
More changes, good lord.
Index: acknowledge.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/acknowledge.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** acknowledge.c 26 Jan 2003 20:55:37 -0000 1.7
--- acknowledge.c 8 Oct 2003 02:59:12 -0000 1.8
***************
*** 7,10 ****
--- 7,11 ----
#include "benson/benson.h"
+ #include "network/network.h"
int main(int argc, char *argv[], char *env[]) {
Index: alertlist.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/alertlist.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** alertlist.c 26 Jan 2003 20:55:38 -0000 1.8
--- alertlist.c 8 Oct 2003 02:59:12 -0000 1.9
***************
*** 7,10 ****
--- 7,11 ----
#include "benson/benson.h"
+ #include "network/network.h"
int main(int argc, char *argv[], char *env[]) {
***************
*** 106,110 ****
if((argc - optind) == 0)
{
! struct benson_alertlist_response *alertlist;
int buffer_size, number_of_alerts, ctr;
index = optind;
--- 107,111 ----
if((argc - optind) == 0)
{
! struct benson_alertlist_response_v31 *alertlist;
int buffer_size, number_of_alerts, ctr;
index = optind;
***************
*** 117,121 ****
exit(EXIT_FAILURE);
}
! number_of_alerts = buffer_size / sizeof(struct benson_alertlist_response);
printf("<xml>\n");
for(ctr=0;ctr<number_of_alerts;ctr++) {
--- 118,122 ----
exit(EXIT_FAILURE);
}
! number_of_alerts = buffer_size / sizeof(struct benson_alertlist_response_v31);
printf("<xml>\n");
for(ctr=0;ctr<number_of_alerts;ctr++) {
Index: btrap.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/btrap.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** btrap.c 28 Sep 2003 22:26:28 -0000 1.18
--- btrap.c 8 Oct 2003 02:59:12 -0000 1.19
***************
*** 7,10 ****
--- 7,11 ----
#include <benson/benson.h>
+ #include "network/network.h"
//#include <benson/perl_util.h>
Index: cfgctl.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/cfgctl.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** cfgctl.c 28 Sep 2003 22:26:28 -0000 1.11
--- cfgctl.c 8 Oct 2003 02:59:12 -0000 1.12
***************
*** 8,11 ****
--- 8,13 ----
#include <benson/benson.h>
+ #include <benson/cfgctl.h>
+ #include <benson/const.h>
***************
*** 82,86 ****
extern dts first_dts;
static dts *ptrcurrent, *ptrnext;
! unsigned int found = FALSE;
int Result;
--- 84,88 ----
extern dts first_dts;
static dts *ptrcurrent, *ptrnext;
! unsigned int found = 0;
int Result;
***************
*** 93,97 ****
ptrnext = first_dts.next;
! while (( ptrcurrent->dtag != NULL ) && ( found == FALSE ))
{
Result = strcmp ( ptrin, &(ptrcurrent->dtag[0]) );
--- 95,99 ----
ptrnext = first_dts.next;
! while (( ptrcurrent->dtag != NULL ) && ( found == 0 ))
{
Result = strcmp ( ptrin, &(ptrcurrent->dtag[0]) );
Index: utils.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/utils.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** utils.c 8 Oct 2003 01:41:51 -0000 1.15
--- utils.c 8 Oct 2003 02:59:12 -0000 1.16
***************
*** 7,11 ****
--- 7,13 ----
#include <benson/benson.h>
+ #include <benson/ipc.h>
#include <benson/const.h>
+ #include "network/network.h"
void safe_insert(char *d, char *s, int maxsize) {
***************
*** 80,84 ****
}
! int ibn_create_identity(bnet_req *alert, char *identity) {
return GOOD;
}
--- 82,86 ----
}
! int ibn_create_identity(bnet_req_v31 *alert, char *identity) {
return GOOD;
}
|