Browse Source

sr: Rename shared_random_common.{c|h} to shared_random_client.{c|h}

No code behavior change.

Pars of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet 6 years ago
parent
commit
70c92c3366

+ 1 - 1
src/or/control.c

@@ -76,7 +76,7 @@
 #include "router.h"
 #include "routerlist.h"
 #include "routerparse.h"
-#include "shared_random_common.h"
+#include "shared_random_client.h"
 
 #ifndef _WIN32
 #include <pwd.h>

+ 1 - 1
src/or/dirauth/shared_random.c

@@ -96,7 +96,7 @@
 #include "router.h"
 #include "routerlist.h"
 #include "shared_random_state.h"
-#include "shared_random_common.h"
+#include "shared_random_client.h"
 #include "util.h"
 #include "voting_schedule.h"
 

+ 1 - 1
src/or/dirauth/shared_random_state.c

@@ -18,7 +18,7 @@
 #include "networkstatus.h"
 #include "router.h"
 #include "shared_random_state.h"
-#include "shared_random_common.h"
+#include "shared_random_client.h"
 
 #include "dirauth/dirvote.h"
 

+ 1 - 1
src/or/hs_common.c

@@ -28,7 +28,7 @@
 #include "rendservice.h"
 #include "routerset.h"
 #include "router.h"
-#include "shared_random_common.h"
+#include "shared_random_client.h"
 #include "dirauth/shared_random_state.h"
 
 /* Trunnel */

+ 1 - 1
src/or/hs_service.c

@@ -24,7 +24,7 @@
 #include "router.h"
 #include "routerkeys.h"
 #include "routerlist.h"
-#include "shared_random_common.h"
+#include "shared_random_client.h"
 #include "statefile.h"
 
 #include "hs_circuit.h"

+ 2 - 2
src/or/include.am

@@ -103,7 +103,7 @@ LIBTOR_A_SOURCES = \
 	src/or/scheduler.c				\
 	src/or/scheduler_kist.c				\
 	src/or/scheduler_vanilla.c			\
-	src/or/shared_random_common.c			\
+	src/or/shared_random_client.c			\
 	src/or/statefile.c				\
 	src/or/status.c					\
 	src/or/torcert.c				\
@@ -265,7 +265,7 @@ ORHEADERS = \
 	src/or/routerset.h				\
 	src/or/routerparse.h				\
 	src/or/scheduler.h				\
-	src/or/shared_random_common.h			\
+	src/or/shared_random_client.h			\
 	src/or/statefile.h				\
 	src/or/status.h					\
 	src/or/torcert.h				\

+ 1 - 1
src/or/routerparse.c

@@ -74,7 +74,7 @@
 #include "entrynodes.h"
 #include "torcert.h"
 #include "sandbox.h"
-#include "shared_random_common.h"
+#include "shared_random_client.h"
 #include "voting_schedule.h"
 #include "dirauth/shared_random.h"
 

+ 3 - 3
src/or/shared_random_common.c → src/or/shared_random_client.c

@@ -2,14 +2,14 @@
 /* See LICENSE for licensing information */
 
 /**
- * \file shared_random_common.c
+ * \file shared_random_client.c
  * \brief This file contains functions that are from the shared random
  *        subsystem but used by many part of tor. The full feature is built
  *        as part of the dirauth module.
  **/
 
-#define SHARED_RANDOM_COMMON_PRIVATE
-#include "shared_random_common.h"
+#define SHARED_RANDOM_CLIENT_PRIVATE
+#include "shared_random_client.h"
 
 #include "config.h"
 #include "voting_schedule.h"

+ 5 - 5
src/or/shared_random_common.h → src/or/shared_random_client.h

@@ -2,12 +2,12 @@
 /* See LICENSE for licensing information */
 
 /**
- * \file shared_random_common.h
- * \brief Header file for shared_random_common.c.
+ * \file shared_random_client.h
+ * \brief Header file for shared_random_client.c.
  **/
 
-#ifndef TOR_SHARED_RANDOM_COMMON_H
-#define TOR_SHARED_RANDOM_COMMON_H
+#ifndef TOR_SHARED_RANDOM_CLIENT_H
+#define TOR_SHARED_RANDOM_CLIENT_H
 
 /* Dirauth module. */
 #include "dirauth/shared_random.h"
@@ -43,5 +43,5 @@ time_t get_start_time_of_current_round(void);
 
 #endif /* TOR_UNIT_TESTS */
 
-#endif /* TOR_SHARED_RANDOM_COMMON_H */
+#endif /* TOR_SHARED_RANDOM_CLIENT_H */
 

+ 1 - 1
src/test/test_shared_random.c

@@ -16,7 +16,7 @@
 #include "routerlist.h"
 #include "router.h"
 #include "routerparse.h"
-#include "shared_random_common.h"
+#include "shared_random_client.h"
 #include "networkstatus.h"
 #include "log_test_helpers.h"
 #include "voting_schedule.h"