/** 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;
/** 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;
* 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.