projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove extra semicolon in my definition of setpriority()
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
d359425
..
da3c33f
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-485,7
+485,7
@@
static bool drop_privs() {
}
#ifdef HAVE_MINGW
}
#ifdef HAVE_MINGW
-# define setpriority(level) SetPriorityClass(GetCurrentProcess(), level)
;
+# define setpriority(level) SetPriorityClass(GetCurrentProcess(), level)
#else
# define NORMAL_PRIORITY_CLASS 0
# define BELOW_NORMAL_PRIORITY_CLASS 10
#else
# define NORMAL_PRIORITY_CLASS 0
# define BELOW_NORMAL_PRIORITY_CLASS 10
@@
-589,7
+589,11
@@
int main2(int argc, char **argv)
if(!setup_network())
goto end;
if(!setup_network())
goto end;
- /* Change process priority */
+ /* Initiate all outgoing connections. */
+
+ try_outgoing_connections();
+
+ /* Change process priority */
char *priority = 0;
char *priority = 0;
@@
-610,10
+614,6
@@
int main2(int argc, char **argv)
if (!drop_privs())
goto end;
if (!drop_privs())
goto end;
- /* Initiate all outgoing connections. */
-
- try_outgoing_connections();
-
/* Start main loop. It only exits when tinc is killed. */
status = main_loop();
/* Start main loop. It only exits when tinc is killed. */
status = main_loop();