projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa305d9
)
Reformat all code using astyle.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 6 Mar 2018 18:24:14 +0000
(19:24 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 6 Mar 2018 18:24:14 +0000
(19:24 +0100)
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
1ef7941
..
54816a3
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-747,10
+747,15
@@
static bool remove_service(void) {
fprintf(stderr, "Could not remove %s service: %s\n", identname, winerror(GetLastError()));
return false;
}
- if(service)
- CloseServiceHandle(service);
- if(manager)
- CloseServiceHandle(manager);
+
+ if(service) {
+ CloseServiceHandle(service);
+ }
+
+ if(manager) {
+ CloseServiceHandle(manager);
+ }
+
fprintf(stderr, "%s service removed\n", identname);
return true;