projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use iface instead of interface.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
a2b3580
..
db18dc5
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-49,7
+49,12
@@
#include <time.h>
#endif
#include <time.h>
#endif
+#ifdef HAVE_GETOPT_LONG
#include <getopt.h>
#include <getopt.h>
+#else
+#include "getopt.h"
+#endif
+
#include "pidfile.h"
#include "conf.h"
#include "pidfile.h"
#include "conf.h"
@@
-239,7
+244,8
@@
static bool parse_options(int argc, char **argv) {
usage(true);
return false;
}
usage(true);
return false;
}
- netname = strcmp(optarg, ".") != 0 ? xstrdup(optarg) : NULL;
+ if(optarg && strcmp(optarg, "."))
+ netname = xstrdup(optarg);
break;
case 'o': /* option */
break;
case 'o': /* option */