[tor-commits] [tor/master] Adjust windows stubs for new start/finish_daemon() return types

nickm at torproject.org nickm at torproject.org
Wed Sep 5 00:47:14 UTC 2018


commit e56f0c9d33a6d7f30f790ec304c87900e9ea7d51
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Aug 14 16:44:59 2018 -0400

    Adjust windows stubs for new start/finish_daemon() return types
---
 src/lib/process/daemon.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/lib/process/daemon.c b/src/lib/process/daemon.c
index 3fc224104..c64affd8b 100644
--- a/src/lib/process/daemon.c
+++ b/src/lib/process/daemon.c
@@ -157,13 +157,15 @@ finish_daemon(const char *desired_cwd)
 }
 #else /* !(!defined(_WIN32)) */
 /* defined(_WIN32) */
-void
+int
 start_daemon(void)
 {
+  return 0;
 }
-void
+int
 finish_daemon(const char *cp)
 {
   (void)cp;
+  return 0;
 }
 #endif /* !defined(_WIN32) */





More information about the tor-commits mailing list