projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix all warnings when compiling with mingw64.
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
7779430
..
e1eb3b3
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-37,7
+37,9
@@
#include <openssl/evp.h>
#include <openssl/engine.h>
#include <openssl/evp.h>
#include <openssl/engine.h>
+#ifdef HAVE_LZO
#include LZO1X_H
#include LZO1X_H
+#endif
#ifndef HAVE_MINGW
#include <pwd.h>
#ifndef HAVE_MINGW
#include <pwd.h>
@@
-116,6
+118,7
@@
static struct option const long_options[] = {
#ifdef HAVE_MINGW
static struct WSAData wsa_state;
CRITICAL_SECTION mutex;
#ifdef HAVE_MINGW
static struct WSAData wsa_state;
CRITICAL_SECTION mutex;
+int main2(int argc, char **argv);
#endif
static void usage(bool status) {
#endif
static void usage(bool status) {
@@
-540,10
+543,12
@@
int main(int argc, char **argv) {
if(!read_server_config())
return 1;
if(!read_server_config())
return 1;
+#ifdef HAVE_LZO
if(lzo_init() != LZO_E_OK) {
logger(LOG_ERR, "Error initializing LZO compressor!");
return 1;
}
if(lzo_init() != LZO_E_OK) {
logger(LOG_ERR, "Error initializing LZO compressor!");
return 1;
}
+#endif
#ifdef HAVE_MINGW
if(WSAStartup(MAKEWORD(2, 2), &wsa_state)) {
#ifdef HAVE_MINGW
if(WSAStartup(MAKEWORD(2, 2), &wsa_state)) {