浏览代码

fix comment and return value for check_software_version_against_directory()

svn:r4996
Roger Dingledine 19 年之前
父节点
当前提交
d7d4d4cbbf
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/or/routerparse.c

+ 2 - 3
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