* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
-#include "config.h"
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdio.h>
-#include <assert.h>
#include <sched.h>
#include <errno.h>
+#include <urcu/assert.h>
#include <urcu/arch.h>
#include <urcu/tls-compat.h>
rcu_read_lock();
rcu_read_unlock();
- node = malloc(sizeof(*node));
- assert(node);
+ node = (struct test_node *) malloc(sizeof(*node));
+ urcu_posix_assert(node);
call_rcu(&node->head, cb);
}
}
-int main(int argc, char **argv)
+int main(int argc __attribute__((unused)), char **argv)
{
unsigned int i;