diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-14 09:40:07 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-14 09:40:07 +0000 |
commit | 4564367b2aa0cc41947148d471609115cd9e60c8 (patch) | |
tree | e3d95c32d79024c8a160f503defcc0fdd1d2f789 /src | |
parent | affcda71c69476f54594886532dfc33240c1fd9e (diff) | |
download | tor-4564367b2aa0cc41947148d471609115cd9e60c8.tar.gz tor-4564367b2aa0cc41947148d471609115cd9e60c8.zip |
Remove redundant stat() for reading cached directory, and remove
confusing warn when the cached directory isn't there yet.
svn:r2847
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index d1f29920c3..77160d78b8 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -47,17 +47,11 @@ int router_reload_router_list(void) { char filename[512]; int is_recent; - struct stat st; char *s; tor_assert(get_options()->DataDirectory); tor_snprintf(filename,sizeof(filename),"%s/cached-directory", get_options()->DataDirectory); - if (stat(filename, &st)) { - log_fn(LOG_WARN, "Unable to check status for '%s': %s", filename, - strerror(errno)); - return 0; - } s = read_file_to_str(filename,0); if (s) { log_fn(LOG_INFO, "Loading cached directory from %s", filename); |