- cleaned up makefiles
- polished code to avoid warnings
This commit is contained in:
@ -141,6 +141,7 @@
|
||||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
@ -2381,7 +2382,7 @@ static int RS__MAX_ASYNCH = 20; /* Asynch "ports" 0 - 19 will be allowed */
|
||||
Ts_info = calloc (RS__MAX_ASYNCH, sizeof (Ts_info[0]));
|
||||
if (Ts_info == NULL) {
|
||||
printf (" Unable to allocate space for Ts_info\n");
|
||||
freeAll (Cl_info); exit (EXIT_FAILURE);
|
||||
freeAll (); exit (EXIT_FAILURE);
|
||||
}
|
||||
for (i = 0; i < RS__MAX_ASYNCH; i++) Ts_info[i].status = TS_SS_IDLE;
|
||||
/*-----------------------------------------------------------------------*/
|
||||
@ -2580,7 +2581,8 @@ static int RS__MAX_ASYNCH = 20; /* Asynch "ports" 0 - 19 will be allowed */
|
||||
&buff[4]);
|
||||
traceWrite ();
|
||||
}else {
|
||||
printf ("%.15s - USR1 signal detected. There is no trace buffer.\n");
|
||||
printf ("%.15s - USR1 signal detected. There is no trace buffer.\n",
|
||||
&buff[4]);
|
||||
}
|
||||
fflush (NULL);
|
||||
signal (SIGUSR1, USR1_Handler); /* Re-enable USR1 signal */
|
||||
|
Reference in New Issue
Block a user