--- a/src/raytracer.cc Sat Nov 17 17:20:36 2007 +0100
+++ b/src/raytracer.cc Sat Nov 17 17:47:06 2007 +0100
@@ -233,11 +233,11 @@
printf("* pthreads enabled, using %d threads\n", num_threads);
pthread_t threads[num_threads];
for (int t = 0; t < num_threads; t++)
- threads[t] = NULL;
+ threads[t] = 0;
int t = 0;
#endif
- printf("* rendering row 0 ( 0% done)");
+ printf("* rendering row 0 ( 0%% done)");
for (int y = 0; y < h; y++) {
d = (RenderrowData*) malloc(sizeof(RenderrowData));
d->rt = this;
@@ -260,7 +260,7 @@
t = 0;
/* wait for next thread in fifo queue, so the descriptor can be reused;
this also limits number of running threads */
- if (threads[t] != NULL)
+ if (threads[t] != 0)
if (pthread_join(threads[t], (void**)&d) == 0)
free(d);
#else