|
From: Bob T. <bt...@us...> - 2003-10-08 03:15:06
|
Update of /cvsroot/benson/benson3/src
In directory sc8-pr-cvs1:/tmp/cvs-serv3889/src
Modified Files:
alertlist.c cfgctl.c
Log Message:
More changes this may actually work.
Index: alertlist.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/alertlist.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** alertlist.c 8 Oct 2003 02:59:12 -0000 1.9
--- alertlist.c 8 Oct 2003 03:15:02 -0000 1.10
***************
*** 114,118 ****
printf("Destination: %s\n", destination);
}
! if((alertlist = bn_alertlist(destination, port, source, &buffer_size)) == NULL) {
printf("bn_alertlist() failed.\n");
exit(EXIT_FAILURE);
--- 114,118 ----
printf("Destination: %s\n", destination);
}
! if((alertlist = (struct benson_alertlist_response_v31 *)bn_alertlist(destination, port, source, &buffer_size)) == NULL) {
printf("bn_alertlist() failed.\n");
exit(EXIT_FAILURE);
Index: cfgctl.c
===================================================================
RCS file: /cvsroot/benson/benson3/src/cfgctl.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** cfgctl.c 8 Oct 2003 02:59:12 -0000 1.12
--- cfgctl.c 8 Oct 2003 03:15:02 -0000 1.13
***************
*** 216,222 ****
sprintf( ptrdts->dtag, "%s", dtag );
sprintf( ptrdts->dvalue, "%s", dvalue );
! #if (DEBUG==TRUE)
! printf ( "dtag = %s dvalue = %s\n",ptrdts->dtag,ptrdts->dvalue );
! #endif
}
break;
--- 216,222 ----
sprintf( ptrdts->dtag, "%s", dtag );
sprintf( ptrdts->dvalue, "%s", dvalue );
! //#if (DEBUG==TRUE)
! // printf ( "dtag = %s dvalue = %s\n",ptrdts->dtag,ptrdts->dvalue );
! //#endif
}
break;
***************
*** 227,233 ****
if ( feof ( ptrfile ) != 0 )
{
! #if (DEBUG==TRUE)
! printf("load_config successfully loaded new configuration\n");
! #endif
fclose ( ptrfile );
return ( GOOD );
--- 227,233 ----
if ( feof ( ptrfile ) != 0 )
{
! //#if (DEBUG==TRUE)
! // printf("load_config successfully loaded new configuration\n");
! //#endif
fclose ( ptrfile );
return ( GOOD );
|