From 3c840072e0cbd29bb2c788431326d9fc306f58fb Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 17 Sep 2014 07:54:18 -0500 Subject: [PATCH] qspn-empiric: If we return non-void we have to return *something* --- src/qspn-empiric.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/qspn-empiric.c b/src/qspn-empiric.c index 8a50a25..c2056ff 100644 --- a/src/qspn-empiric.c +++ b/src/qspn-empiric.c @@ -733,7 +733,7 @@ send_qspn_backpro(void *argv) if (int_map[to].flags & QSPN_STARTER) { fprintf(stderr, "%u: qspn_backpro: We've arrived... finally\n", pthread_self()); - return; + return NULL; } for (x = 0; x < int_map[to].links; x++) { @@ -789,7 +789,7 @@ send_qspn_reply(void *argv) "%u: DROPPED old brdcast: q.broadcast: %d, qopt->q.from broadcast: %d\n", pthread_self(), qopt->q.broadcast, int_map[to].brdcast[qopt->q.from]); - return; + return NULL; } else int_map[to].brdcast[qopt->q.from] = qopt->q.broadcast; @@ -847,7 +847,7 @@ send_qspn_open(void *argv) fprintf(stderr, "%u: qspn_open: We received a qspn_open, but we are the OPENER!!\n", pthread_self()); - return; + return NULL; } for (x = 0; x < int_map[to].links; x++) { @@ -867,7 +867,7 @@ send_qspn_open(void *argv) fprintf(stderr, "%u: Yai! We've finished the reopening of heaven\n", pthread_self()); - return; + return NULL; } for (x = 0; x < int_map[to].links; x++) { @@ -924,7 +924,7 @@ send_qspn_pkt(void *argv) fprintf(stderr, "%u: qspn_pkt: We received a qspn_pkt, but we are the QSPN_STARTER!!\n", pthread_self()); - return; + return NULL; } for (x = 0; x < int_map[to].links; x++) { @@ -980,7 +980,7 @@ send_qspn_pkt(void *argv) pthread_self(), dst); thread_joint(qopt->join, send_qspn_open, (void *) nopt); xfree(qopt); - return; + return NULL; } } #else /*Q_OPEN not defined */ @@ -1024,7 +1024,7 @@ send_qspn_pkt(void *argv) pthread_self(), dst); thread_joint(qopt->join, send_qspn_reply, (void *) nopt); xfree(qopt); - return; + return NULL; } } #endif /*Q_OPEN */