projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a65011b
)
Old gcc compilers don't like declarations in the middle of a function.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 3 Aug 2003 09:55:20 +0000
(09:55 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 3 Aug 2003 09:55:20 +0000
(09:55 +0000)
src/tincd.c
patch
|
blob
|
history
diff --git
a/src/tincd.c
b/src/tincd.c
index
6606b5b
..
ee3ca1c
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: tincd.c,v 1.10.4.8
2 2003/08/03 09:08:52
guus Exp $
+ $Id: tincd.c,v 1.10.4.8
3 2003/08/03 09:55:20
guus Exp $
*/
#include "system.h"
*/
#include "system.h"
@@
-79,7
+79,7
@@
char *pidfilename = NULL; /* pid file location */
char *logfilename = NULL; /* log file location */
char **g_argv; /* a copy of the cmdline arguments */
char *logfilename = NULL; /* log file location */
char **g_argv; /* a copy of the cmdline arguments */
-
int exitstatus = 0
;
+
static int status
;
static struct option const long_options[] = {
{"config", required_argument, NULL, 'c'},
static struct option const long_options[] = {
{"config", required_argument, NULL, 'c'},
@@
-467,7
+467,6
@@
int main2(int argc, char **argv)
/* Start main loop. It only exits when tinc is killed. */
/* Start main loop. It only exits when tinc is killed. */
- int status;
status = main_loop();
/* Shutdown properly. */
status = main_loop();
/* Shutdown properly. */