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

[tor-commits] [tor/master] Constification.



commit e8715b30411062d09832e912d87d526dc203e4f0
Author: George Kadianakis <desnacked@xxxxxxxxx>
Date:   Sun Sep 11 23:35:00 2011 +0200

    Constification.
---
 src/or/config.c     |    2 +-
 src/or/transports.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/or/config.c b/src/or/config.c
index df06739..f2cb6cd 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -5474,7 +5474,7 @@ options_get_datadir_fname2_suffix(or_options_t *options,
 /** Return true if <b>line</b> is a valid state TransportProxy line.
  *  Return false otherwise. */
 static int
-state_transport_line_is_valid(char *line)
+state_transport_line_is_valid(const char *line)
 {
   smartlist_t *items = NULL;
   char *addrport=NULL;
diff --git a/src/or/transports.c b/src/or/transports.c
index 01cbfca..a3abfed 100644
--- a/src/or/transports.c
+++ b/src/or/transports.c
@@ -141,7 +141,7 @@ pt_proxies_configuration_pending(void)
 
 /** Return true if <b>mp</b> has the same argv as <b>proxy_argv</b> */
 static int
-managed_proxy_has_argv(managed_proxy_t *mp, char **proxy_argv)
+managed_proxy_has_argv(const managed_proxy_t *mp, char **proxy_argv)
 {
   char **tmp1=proxy_argv;
   char **tmp2=mp->argv;
@@ -190,7 +190,7 @@ add_transport_to_proxy(const char *transport, managed_proxy_t *mp)
  *  Returns true if managed proxy <b>mp</b> needs to be restarted
  *  after the SIGHUP based on the new torrc. */
 static int
-proxy_needs_restart(managed_proxy_t *mp)
+proxy_needs_restart(const managed_proxy_t *mp)
 {
   /* mp->transport_to_launch is populated with the names of the
      transports that must be launched *after* the SIGHUP.



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