From: <al...@us...> - 2003-04-16 10:34:10
|
Update of /cvsroot/msyslog/msyslog-event/src In directory sc8-pr-cvs1:/tmp/cvs-serv23120/src Modified Files: msyslog.h Log Message: fix FD_CLOSE Index: msyslog.h =================================================================== RCS file: /cvsroot/msyslog/msyslog-event/src/msyslog.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- msyslog.h 25 Feb 2003 00:01:30 -0000 1.3 +++ msyslog.h 16 Apr 2003 10:34:06 -0000 1.4 @@ -64,7 +64,7 @@ #define MAX_STACK_SIZE 100 -#define FD_CLOSE(cfd) {if (cfd == -1) close(cfd); cfd = -1; } +#define FD_CLOSE(cfd) {if (cfd != -1) { close(cfd); cfd = -1; } } #define ARR_SIZE(arr) (sizeof(arr)/sizeof(arr[0])) |