[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Only warn about version newness once
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv29499/src/or
Modified Files:
routerparse.c
Log Message:
Only warn about version newness once
Index: routerparse.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerparse.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- routerparse.c 7 Aug 2004 03:37:36 -0000 1.28
+++ routerparse.c 7 Aug 2004 05:12:08 -0000 1.29
@@ -197,6 +197,7 @@
char *version, *comma, *cp;
tor_version_t mine, other;
int found_newer = 0, r;
+ static int warned_too_new=0;
vl = versionlist;
@@ -234,8 +235,11 @@
break;
}
if (!found_newer) {
- log_fn(LOG_WARN, "This version of Tor (%s) is newer than any on the recommended list (%s)",
- myversion, versionlist);
+ if (!warned_too_new) {
+ log_fn(LOG_WARN, "This version of Tor (%s) is newer than any on the recommended list (%s)",
+ myversion, versionlist);
+ warned_too_new=1;
+ }
return 0;
} else {
return 1;