summaryrefslogtreecommitdiffstats
path: root/sbin/ggate
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2008-06-26 07:05:35 +0000
committermtm <mtm@FreeBSD.org>2008-06-26 07:05:35 +0000
commit5fecddb79aab07763260a65735440c7c326c203c (patch)
tree93948527ba15e5edabfc6e944a2855f2e630ba36 /sbin/ggate
parent043844f182827bb5a4c4413073d17afb3eb70d90 (diff)
downloadFreeBSD-src-5fecddb79aab07763260a65735440c7c326c203c.zip
FreeBSD-src-5fecddb79aab07763260a65735440c7c326c203c.tar.gz
The signature for a pthread function requires that it
return a pointer to a void. The send_thread() and disk_thread() funtions; however, do not have a return value because they run for the duration of the daemon's lifetime. This causes gcc to barf when running with -O3. Make these functions return a null pointer to quiet it. PR: bin/124342 Submitted by: Garrett Cooper <gcooper@FreeBSD.org> (minus his comments) MFC after: 1 week
Diffstat (limited to 'sbin/ggate')
-rw-r--r--sbin/ggate/ggated/ggated.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/ggate/ggated/ggated.c b/sbin/ggate/ggated/ggated.c
index 74784e7..52d2428 100644
--- a/sbin/ggate/ggated/ggated.c
+++ b/sbin/ggate/ggated/ggated.c
@@ -756,6 +756,9 @@ disk_thread(void *arg)
error = pthread_mutex_unlock(&outqueue_mtx);
assert(error == 0);
}
+
+ /* NOTREACHED */
+ return (NULL);
}
static void *
@@ -810,6 +813,9 @@ send_thread(void *arg)
}
free(req);
}
+
+ /* NOTREACHED */
+ return (NULL);
}
static void
OpenPOWER on IntegriCloud