projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix -Wsign-compare error in keys.c
[tinc]
/
src
/
process.c
diff --git
a/src/process.c
b/src/process.c
index
c6cb536
..
f3e190c
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-1,7
+1,7
@@
/*
process.c -- process management functions
Copyright (C) 1999-2005 Ivo Timmermans,
/*
process.c -- process management functions
Copyright (C) 1999-2005 Ivo Timmermans,
- 2000-201
3
Guus Sliepen <guus@tinc-vpn.org>
+ 2000-201
8
Guus Sliepen <guus@tinc-vpn.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-20,25
+20,17
@@
#include "system.h"
#include "system.h"
-#include "conf.h"
-#include "connection.h"
-#include "control.h"
-#include "device.h"
-#include "edge.h"
-#include "event.h"
#include "logger.h"
#include "names.h"
#include "logger.h"
#include "names.h"
-#include "net.h"
-#include "node.h"
#include "process.h"
#include "process.h"
-#include "subnet.h"
-#include "utils.h"
-#include "xalloc.h"
#include "version.h"
#include "version.h"
+#ifdef HAVE_MINGW
+#include "utils.h"
+#endif
+
/* If zero, don't detach from the terminal. */
bool do_detach = true;
/* If zero, don't detach from the terminal. */
bool do_detach = true;
-bool sigalrm = false;
extern char **g_argv;
extern bool use_logfile;
extern char **g_argv;
extern bool use_logfile;
@@
-115,7
+107,11
@@
static bool install_service(void) {
io_t stop_io;
io_t stop_io;
-DWORD WINAPI controlhandler(DWORD request, DWORD type, LPVOID boe, LPVOID bah) {
+DWORD WINAPI controlhandler(DWORD request, DWORD type, LPVOID data, LPVOID context) {
+ (void)type;
+ (void)data;
+ (void)context;
+
switch(request) {
case SERVICE_CONTROL_INTERROGATE:
SetServiceStatus(statushandle, &status);
switch(request) {
case SERVICE_CONTROL_INTERROGATE:
SetServiceStatus(statushandle, &status);