aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-05-15 10:07:21 +0000
committerOmar Polo <op@omarpolo.com>2021-05-15 10:07:21 +0000
commit91b9f2a8f9d39f2fb842c33049d966777027e5f4 (patch)
tree2dfe7f933e7c8265031dfb79fda234579dd8e14b /server.c
parent571d20fbb3653391fb9baf932c502f8b9ffe7d27 (diff)
const-ify strip_path
Diffstat (limited to 'server.c')
-rw-r--r--server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.c b/server.c
index 8216113..b7a71f4 100644
--- a/server.c
+++ b/server.c
@@ -44,7 +44,7 @@ static int check_path(struct client*, const char*, int*);
static void open_file(struct client*);
static void check_for_cgi(struct client*);
static void handle_handshake(int, short, void*);
-static char *strip_path(char*, int);
+static const char *strip_path(const char*, int);
static void fmt_sbuf(const char*, struct client*, const char*);
static int apply_block_return(struct client*);
static int apply_require_ca(struct client*);
@@ -494,8 +494,8 @@ err:
start_reply(c, BAD_REQUEST, "Wrong/malformed host or missing SNI");
}
-static char *
-strip_path(char *path, int strip)
+static const char *
+strip_path(const char *path, int strip)
{
char *t;