]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Constification.
authorGeorge Kadianakis <desnacked@gmail.com>
Sun, 11 Sep 2011 21:35:00 +0000 (23:35 +0200)
committerGeorge Kadianakis <desnacked@gmail.com>
Sun, 11 Sep 2011 21:35:00 +0000 (23:35 +0200)
src/or/config.c
src/or/transports.c

index df06739bc75657383bc4e677b1735b520e7a8c7e..f2cb6cde5c9255a7e1f74d0b7741a855a78a1399 100644 (file)
@@ -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;
index 01cbfca9df7ff01a3a72311a09f512803b252b5a..a3abfed729cf58705e257ae263ef2e8b65f26c21 100644 (file)
@@ -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.