diff options
Diffstat (limited to 'ot_config.c')
| -rw-r--r-- | ot_config.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ot_config.c b/ot_config.c index 43c07c5..e9666f9 100644 --- a/ot_config.c +++ b/ot_config.c | |||
| @@ -22,10 +22,10 @@ | |||
| 22 | #include "ot_stats.h" | 22 | #include "ot_stats.h" |
| 23 | #include "trackerlogic.h" | 23 | #include "trackerlogic.h" |
| 24 | 24 | ||
| 25 | char *g_redirecturl; | 25 | const char *g_redirecturl; |
| 26 | char *g_serverdir; | 26 | const char *g_serverdir; |
| 27 | char *g_serveruser; | 27 | const char *g_serveruser; |
| 28 | char *g_statefile; | 28 | const char *g_statefile; |
| 29 | 29 | ||
| 30 | #define OT_LISTEN_INHERIT (-1) | 30 | #define OT_LISTEN_INHERIT (-1) |
| 31 | 31 | ||
| @@ -122,13 +122,13 @@ static int listen_scan_options(char *p, int *shared, int *workers) { | |||
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | 124 | ||
| 125 | char *set_config_option(char **option, char *value) { | 125 | static const char *set_config_option(const char **option, char *value) { |
| 126 | #ifdef _DEBUG | 126 | #ifdef _DEBUG |
| 127 | fprintf(stderr, "Setting config option: %s\n", value); | 127 | fprintf(stderr, "Setting config option: %s\n", value); |
| 128 | #endif | 128 | #endif |
| 129 | while (isspace(*value)) | 129 | while (isspace(*value)) |
| 130 | ++value; | 130 | ++value; |
| 131 | free(*option); | 131 | free((char *)*option); |
| 132 | return *option = strdup(value); | 132 | return *option = strdup(value); |
| 133 | } | 133 | } |
| 134 | 134 | ||
