bug fixes and test2
This commit is contained in:
@ -174,7 +174,7 @@ int main(int argc, char *argv[]) {
|
||||
queueT *queue = createQueue(maxFiles, maxSize);
|
||||
|
||||
// creo la lista dei client in attesa a una lock
|
||||
waiting_t *waiting;
|
||||
waiting_t *waiting = NULL;
|
||||
|
||||
// creo la threadpool
|
||||
threadpool_t *pool = NULL;
|
||||
@ -186,7 +186,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
// scrivo sul log
|
||||
n = snprintf(buf, sizeof(buf), "Creato threadpool di dimensione %d e lending size %d\n", threadsInPool, pendingSize);
|
||||
n = snprintf(buf, sizeof(buf), "Creato threadpool di dimensione %d e pending size %d\n", threadsInPool, pendingSize);
|
||||
if( n<0 ) {
|
||||
perror("snprintf");
|
||||
goto _cleanup;
|
||||
|
||||
Reference in New Issue
Block a user