remove unused parameter

This commit is contained in:
prx 2022-08-18 11:06:37 +02:00
parent f8d215869d
commit e3932483ef
3 changed files with 3 additions and 3 deletions

2
main.c
View File

@ -57,7 +57,7 @@ main(int argc, char **argv)
read_request(request); read_request(request);
split_request(request, hostname, path, query); split_request(request, hostname, path, query);
set_path(request, path, sizeof(path), virtualhost, hostname); set_path(path, sizeof(path), virtualhost, hostname);
//get_query(path, query, sizeof(query)); //get_query(path, query, sizeof(query));
/* percent decode */ /* percent decode */

2
vger.c
View File

@ -380,7 +380,7 @@ read_request(char *request)
} }
char * char *
set_path(const char *request, char *path, size_t pathsiz, int virtualhost, const char *hostname) set_path(char *path, size_t pathsiz, int virtualhost, const char *hostname)
{ {
char tmp[GEMINI_REQUEST_MAX] = {'\0'}; char tmp[GEMINI_REQUEST_MAX] = {'\0'};

2
vger.h
View File

@ -48,7 +48,7 @@ int do_cgi(const char *, const char *, const char *, const char *, const char *
void drop_privileges(const char *, const char *, const char *); void drop_privileges(const char *, const char *, const char *);
void split_dir_file(char *, char *, size_t, char *, size_t); void split_dir_file(char *, char *, size_t, char *, size_t);
char * get_query(char *, char *, size_t); char * get_query(char *, char *, size_t);
char * set_path(const char *, char *, size_t, int, const char *); char * set_path(char *, size_t, int, const char *);
void status(const int, const char *, ...); void status(const int, const char *, ...);
void strip_trailing_slash(char *); void strip_trailing_slash(char *);
int uridecode (char *); int uridecode (char *);