diff options
author | Roger Dingledine <arma@torproject.org> | 2005-09-11 22:36:50 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-09-11 22:36:50 +0000 |
commit | d7d4d4cbbfc5a9ee3c35f18c4568a6472f22e362 (patch) | |
tree | e4ecb2251cb50cf3050f4966b38d3919e8af9269 | |
parent | 43df34a4b8cadd66a0c102e8dd804d862ba7b52a (diff) | |
download | tor-d7d4d4cbbfc5a9ee3c35f18c4568a6472f22e362.tar.gz tor-d7d4d4cbbfc5a9ee3c35f18c4568a6472f22e362.zip |
fix comment and return value for check_software_version_against_directory()
svn:r4996
-rw-r--r-- | src/or/routerparse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index cd89d215f0..a3bf9ab75a 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -372,8 +372,7 @@ get_recommended_software_from_directory(const char *str) return ret; } -/* Return 0 if myversion is supported; else log a message and return - * -1 (or exit if ignoreversions is false) */ +/* Return 0 if myversion is supported; else warn and return -1. */ int check_software_version_against_directory(const char *directory) { @@ -392,7 +391,7 @@ check_software_version_against_directory(const char *directory) "Please use %s%s.", VERSION, strchr(v,',') ? "one of " : "", v); tor_free(v); - return 0; + return -1; } /** Parse a directory from <b>str</b> and, when done, store the |