Fix libdfa warnings, add libdfa to CMake.

This commit is contained in:
Sears Russell 2008-10-01 20:03:15 +00:00
parent 348783398a
commit 65a3c94421
2 changed files with 3 additions and 2 deletions

View file

@ -1 +1,2 @@
ADD_LIBRARY(rw rw.c)
ADD_LIBRARY(libdfa libdfa.c monotree.c smash.c callbacks.c messages.c networksetup.c)

View file

@ -193,7 +193,7 @@ void* main_loop(DfaSet *dfaSet) {
new_machine = 1;
stateMachine->worker_thread = (pid_t)NULL;
stateMachine->worker_thread = (pid_t)0;
stateMachine->page = NULL;
/* @todo libdfa doesn't use the 'conventional' null recordid, {0,0,-1} */
@ -261,7 +261,7 @@ void* main_loop(DfaSet *dfaSet) {
/* Time to de-allocate machine */
if(stateMachine->worker_thread == (pid_t)NULL) {
if(stateMachine->worker_thread == (pid_t)0) {
/* No worker thread, so just deallocate, and move on */