remove unused function
This commit is contained in:
parent
27549119ef
commit
63616a97fc
2
main.c
2
main.c
|
@ -59,8 +59,6 @@ main(int argc, char **argv)
|
||||||
split_request(request, hostname, path, query);
|
split_request(request, hostname, path, query);
|
||||||
set_path(path, sizeof(path), virtualhost, hostname);
|
set_path(path, sizeof(path), virtualhost, hostname);
|
||||||
|
|
||||||
//get_query(path, query, sizeof(query));
|
|
||||||
|
|
||||||
/* percent decode */
|
/* percent decode */
|
||||||
uridecode(query);
|
uridecode(query);
|
||||||
uridecode(path);
|
uridecode(path);
|
||||||
|
|
15
vger.c
15
vger.c
|
@ -452,21 +452,6 @@ split_dir_file(char *path, char *dir, size_t dirsiz, char *file, size_t filesiz)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
|
||||||
get_query(char *path, char *query, size_t querysiz)
|
|
||||||
{
|
|
||||||
char *pos = NULL;
|
|
||||||
|
|
||||||
/* remove a query string before percent decoding */
|
|
||||||
/* look for "?" if any to set query for cgi, remove it */
|
|
||||||
pos = strchr(path, '?');
|
|
||||||
if (pos != NULL) {
|
|
||||||
estrlcpy(query, pos + 1, querysiz);
|
|
||||||
pos[0] = '\0'; /* path end where query begins */
|
|
||||||
}
|
|
||||||
return query;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
split_request(const char *request, char *hostname, char *path, char *query)
|
split_request(const char *request, char *hostname, char *path, char *query)
|
||||||
{
|
{
|
||||||
|
|
1
vger.h
1
vger.h
|
@ -47,7 +47,6 @@ ssize_t display_file(const char *);
|
||||||
int do_cgi(const char *, const char *, const char *, const char *, const char *);
|
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 * set_path(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 *);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user