[or-cvs] Backport: Fix warning about unused function when compiling ...
Nick Mathewson
nickm at seul.org
Wed Jun 8 20:36:15 UTC 2005
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv28228
Modified Files:
Tag: tor-0_1_0-patches
config.c
Log Message:
Backport: Fix warning about unused function when compiling with ancient libevent
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.353.2.1
retrieving revision 1.353.2.2
diff -u -d -r1.353.2.1 -r1.353.2.2
--- config.c 8 Jun 2005 17:44:05 -0000 1.353.2.1
+++ config.c 8 Jun 2005 20:36:13 -0000 1.353.2.2
@@ -217,8 +217,9 @@
static int config_parse_interval(const char *s, int *ok);
static void print_cvs_version(void);
static int init_libevent(void);
+#if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)
static void check_libevent_version(const char *m, const char *v, int server);
-
+#endif
/*
* Functions to read and write the global options pointer.
@@ -2640,7 +2641,7 @@
return 0;
}
-
+#if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)
/**
* Compare the given libevent method and version to a list of versions
* which are known not to work. Warn the user as appropriate.
@@ -2685,6 +2686,7 @@
}
}
+#endif
static void
print_cvs_version(void)
More information about the tor-commits
mailing list