protover: Fix old tor hardcoded version check
[tor.git] / src / or / tor_main.c
blobd67eda2ac9a240756aa2018555fbc9a02e332050
1 /* Copyright 2001-2004 Roger Dingledine.
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2016, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
6 extern const char tor_git_revision[];
8 /** String describing which Tor Git repository version the source was
9 * built from. This string is generated by a bit of shell kludging in
10 * src/or/include.am, and is usually right.
12 const char tor_git_revision[] =
13 #ifndef _MSC_VER
14 #include "micro-revision.i"
15 #endif
16 "";
18 /**
19 * \file tor_main.c
20 * \brief Stub module containing a main() function.
22 * We keep the main function in a separate module so that the unit
23 * tests, which have their own main()s, can link against main.c.
24 **/
26 int tor_main(int argc, char *argv[]);
28 /** We keep main() in a separate file so that our unit tests can use
29 * functions from main.c)
31 int
32 main(int argc, char *argv[])
34 int r = tor_main(argc, argv);
35 if (r < 0 || r > 255)
36 return 1;
37 else
38 return r;