[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix warning about unused function when compiling with ancie...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] Fix warning about unused function when compiling with ancie...
- From: nickm@xxxxxxxx (Nick Mathewson)
- Date: Wed, 8 Jun 2005 16:35:30 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Wed, 08 Jun 2005 16:35:41 -0400
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv28124/src/or
Modified Files:
config.c
Log Message:
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.356
retrieving revision 1.357
diff -u -d -r1.356 -r1.357
--- config.c 8 Jun 2005 20:32:22 -0000 1.356
+++ config.c 8 Jun 2005 20:35:28 -0000 1.357
@@ -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.
@@ -2652,7 +2653,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.
@@ -2697,6 +2698,7 @@
}
}
+#endif
static void
print_cvs_version(void)