remove useless function && reorder declarations

This commit is contained in:
prx 2022-08-18 14:34:04 +02:00
parent 45e5ae32fa
commit 75bfaee73e
2 changed files with 3 additions and 15 deletions

11
vger.c
View File

@ -324,17 +324,6 @@ cgi(const char *cgicmd)
}
void
strip_trailing_slash(char *path)
{
size_t end = strlen(path);
if (end == 0)
return;
end--;
while (path[end] == '/')
path[end--] = '\0';
}
char *
read_request(char *request)
{

7
vger.h
View File

@ -46,13 +46,12 @@ void check_path(char *, size_t, int, size_t);
ssize_t display_file(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 split_dir_file(char *, char *, size_t, char *, size_t);
char * set_path(char *, size_t, int, const char *);
void status(const int, const char *, ...);
void strip_trailing_slash(char *);
int uridecode (char *);
void split_request(const char *, char *, char *, char *);
void split_dir_file(char *, char *, size_t, char *, size_t);
void status(const int, const char *, ...);
void stop(const int, const char *, ...);
int uridecode (char *);
#endif // vger_h_INCLUDED