[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Rename tm_cvt to time_to_tm



commit b6d0e7caa4d11a0142a82aee065e8672b489ca51
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Tue Jul 10 15:25:53 2018 -0400

    Rename tm_cvt to time_to_tm
---
 src/lib/encoding/time_fmt.c                  | 2 +-
 src/lib/log/log.c                            | 2 +-
 src/lib/wallclock/include.am                 | 4 ++--
 src/lib/wallclock/{tm_cvt.c => time_to_tm.c} | 6 +++---
 src/lib/wallclock/{tm_cvt.h => time_to_tm.h} | 8 ++++----
 5 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/lib/encoding/time_fmt.c b/src/lib/encoding/time_fmt.c
index 42b1cc646..a921fc681 100644
--- a/src/lib/encoding/time_fmt.c
+++ b/src/lib/encoding/time_fmt.c
@@ -21,7 +21,7 @@
 #include "lib/malloc/malloc.h"
 #include "lib/string/printf.h"
 #include "lib/string/scanf.h"
-#include "lib/wallclock/tm_cvt.h"
+#include "lib/wallclock/time_to_tm.h"
 
 #include <string.h>
 #include <time.h>
diff --git a/src/lib/log/log.c b/src/lib/log/log.c
index b89747d84..8349041ab 100644
--- a/src/lib/log/log.c
+++ b/src/lib/log/log.c
@@ -45,7 +45,7 @@
 #include "lib/string/util_string.h"
 #include "lib/wallclock/tor_gettimeofday.h"
 #include "lib/wallclock/approx_time.h"
-#include "lib/wallclock/tm_cvt.h"
+#include "lib/wallclock/time_to_tm.h"
 #include "lib/fdio/fdio.h"
 
 #ifdef HAVE_ANDROID_LOG_H
diff --git a/src/lib/wallclock/include.am b/src/lib/wallclock/include.am
index 7864c21e1..1961639bd 100644
--- a/src/lib/wallclock/include.am
+++ b/src/lib/wallclock/include.am
@@ -7,7 +7,7 @@ endif
 
 src_lib_libtor_wallclock_a_SOURCES =			\
 	src/lib/wallclock/approx_time.c			\
-	src/lib/wallclock/tm_cvt.c			\
+	src/lib/wallclock/time_to_tm.c			\
 	src/lib/wallclock/tor_gettimeofday.c
 
 src_lib_libtor_wallclock_testing_a_SOURCES = \
@@ -18,5 +18,5 @@ src_lib_libtor_wallclock_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
 noinst_HEADERS +=					\
 	src/lib/wallclock/approx_time.h			\
 	src/lib/wallclock/timeval.h			\
-	src/lib/wallclock/tm_cvt.h			\
+	src/lib/wallclock/time_to_tm.h			\
 	src/lib/wallclock/tor_gettimeofday.h
diff --git a/src/lib/wallclock/tm_cvt.c b/src/lib/wallclock/time_to_tm.c
similarity index 98%
rename from src/lib/wallclock/tm_cvt.c
rename to src/lib/wallclock/time_to_tm.c
index 4a51a4ab3..6543b97e3 100644
--- a/src/lib/wallclock/tm_cvt.c
+++ b/src/lib/wallclock/time_to_tm.c
@@ -4,14 +4,14 @@
 /* See LICENSE for licensing information */
 
 /**
- * \file tm_cvt.c
- * \brief Convert to and from struct tm, portably.
+ * \file time_to_tm.c
+ * \brief Convert to struct tm, portably.
  **/
 
 #include "orconfig.h"
 #include "lib/cc/torint.h"
 #include "lib/cc/compat_compiler.h"
-#include "lib/wallclock/tm_cvt.h"
+#include "lib/wallclock/time_to_tm.h"
 #include "lib/string/printf.h"
 #include "lib/err/torerr.h"
 
diff --git a/src/lib/wallclock/tm_cvt.h b/src/lib/wallclock/time_to_tm.h
similarity index 79%
rename from src/lib/wallclock/tm_cvt.h
rename to src/lib/wallclock/time_to_tm.h
index a1cdc80ef..0527a97b3 100644
--- a/src/lib/wallclock/tm_cvt.h
+++ b/src/lib/wallclock/time_to_tm.h
@@ -4,12 +4,12 @@
 /* See LICENSE for licensing information */
 
 /**
- * \file tm_cvt.h
- * \brief Header for tm_cvt.c
+ * \file time_to_tm.h
+ * \brief Header for time_to_tm.c
  **/
 
-#ifndef TOR_WALLCLOCK_TM_CVT_H
-#define TOR_WALLCLOCK_TM_CVT_H
+#ifndef TOR_WALLCLOCK_TIME_TO_TM_H
+#define TOR_WALLCLOCK_TIME_TO_TM_H
 
 #include <sys/types.h>
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits