summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-11-15 03:05:23 +0000
committerNick Mathewson <nickm@torproject.org>2005-11-15 03:05:23 +0000
commit9b432311c4d692d68f913027a95e050b1067c5d9 (patch)
treeb1488e36ea7fd8691f6ac1c2d2c2cf2cb0eabd90 /src/common/util.c
parent4cd7bddfc332aa14621235beb649b73f494266b0 (diff)
downloadtor-9b432311c4d692d68f913027a95e050b1067c5d9.tar.gz
tor-9b432311c4d692d68f913027a95e050b1067c5d9.zip
Make new logging stuff work on windows; fix a couple of windows typos.
svn:r5375
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index dd289ff258..2d43f18600 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -433,7 +433,7 @@ find_whitespace(const char *s)
err: \
if (ok) *ok = 0; \
if (next) *next = endptr; \
- return 0;
+ return 0
/** Extract a long from the start of s, in the given numeric base. If
* there is unconverted data and next is provided, set *next to the
@@ -1249,7 +1249,7 @@ tor_listdir(const char *dirname)
smartlist_add(result, tor_strdup(findData.cFileName));
if (!FindNextFile(handle, &findData)) {
if (GetLastError() != ERROR_NO_MORE_FILES) {
- log_fn(LOG_WARN, "Error reading directory.");
+ warn(LD_FS, "Error reading directory.");
}
break;
}