aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-14 16:54:20 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:49:28 -0500
commit39a780e85a0a8cb42f817d0d948ce8fb97662bd3 (patch)
treef28cac0eecc788bc0d0e2a160d61325be9ac049c /src
parent3907faf2fdc28a0c9f85279a58f2059c9a44f9b4 (diff)
downloadtor-39a780e85a0a8cb42f817d0d948ce8fb97662bd3.tar.gz
tor-39a780e85a0a8cb42f817d0d948ce8fb97662bd3.zip
Clean up a needlessly complex get_datadir_fname use
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index c0bdbd7603..2234e7cdb8 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -3274,7 +3274,7 @@ try_locking(const or_options_t *options, int err_if_locked)
if (lockfile)
return 0;
else {
- char *fname = options_get_datadir_fname2_suffix(options, "lock",NULL,NULL);
+ char *fname = options_get_datadir_fname(options, "lock");
int already_locked = 0;
tor_lockfile_t *lf = tor_lockfile_lock(fname, 0, &already_locked);
tor_free(fname);