[lwatch-cvs] files/src acolors.c,1.2,1.3 control.c,1.8,1.9 strpcre.c,1.8,1.9
Brought to you by:
arturcz
|
From: <ar...@us...> - 2002-07-16 19:24:53
|
Update of /cvsroot/lwatch/files/src
In directory usw-pr-cvs1:/tmp/cvs-serv22499
Modified Files:
acolors.c control.c strpcre.c
Log Message:
Next step to new colour system.
Index: acolors.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/acolors.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** acolors.c 13 Jul 2002 00:29:10 -0000 1.2
--- acolors.c 16 Jul 2002 19:24:45 -0000 1.3
***************
*** 115,119 ****
int i;
i=ascprintf(&str,format);
! printf("%s",str);
free(str);
return(i);
--- 115,119 ----
int i;
i=ascprintf(&str,format);
! printf("C:%s",str);
free(str);
return(i);
Index: control.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/control.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** control.c 13 Jul 2002 00:23:16 -0000 1.8
--- control.c 16 Jul 2002 19:24:45 -0000 1.9
***************
*** 71,75 ****
int i;
for(i=1;i<SIGSYS;i++) {
! if((i==SIGKILL)||(i==SIGSTOP)) continue;
#ifdef DEBUG
printf("Set signal handler for %i... ",i);
--- 71,75 ----
int i;
for(i=1;i<SIGSYS;i++) {
! if((i==SIGKILL)||(i==SIGSTOP)||(i==SIGSEGV)) continue;
#ifdef DEBUG
printf("Set signal handler for %i... ",i);
Index: strpcre.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/strpcre.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** strpcre.c 14 Jul 2002 22:47:13 -0000 1.8
--- strpcre.c 16 Jul 2002 19:24:45 -0000 1.9
***************
*** 213,221 ****
#endif
if(!ignore) {
! printf("^%02i%s^%02i%s^%02i%s^%02i%s^01\n",
DATE_COLOR,date_s,
HOST_COLOR,host_s,
SERV_COLOR,serv_s,
MESG_COLOR,mesg_s);
}
#ifdef DEBUG
--- 213,226 ----
#endif
if(!ignore) {
! char *cstr;
! cstr=(char*)malloc(strlen(date_s)+strlen(host_s)+
! strlen(serv_s)+strlen(mesg_s)+17);
! sprintf(cstr,"^%02i%s^%02i%s^%02i%s^%02i%s^01\n",
DATE_COLOR,date_s,
HOST_COLOR,host_s,
SERV_COLOR,serv_s,
MESG_COLOR,mesg_s);
+ cprintf(cstr);
+ free((void*)cstr);
}
#ifdef DEBUG
|