[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] fix comment and return value for check_software_version_aga...



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	routerparse.c 
Log Message:
fix comment and return value for check_software_version_against_directory()


Index: routerparse.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- routerparse.c	8 Sep 2005 21:01:24 -0000	1.133
+++ routerparse.c	11 Sep 2005 22:36:50 -0000	1.134
@@ -372,8 +372,7 @@
   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 @@
      "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