[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] fix a c99-ism
commit 8c7fbdf3af2a28893ab68411d7d534792ccad34d
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed Jul 16 15:30:14 2014 +0200
fix a c99-ism
---
src/common/log.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/common/log.c b/src/common/log.c
index 4ddd54f..2e51e5c 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -1305,7 +1305,8 @@ switch_logs_debug(void)
void
truncate_logs(void)
{
- for (logfile_t *lf = logfiles; lf; lf = lf->next) {
+ logfile_t *lf;
+ for (lf = logfiles; lf; lf = lf->next) {
if (lf->fd >= 0) {
tor_ftruncate(lf->fd);
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits