diff --git a/vger.c b/vger.c index 2bdacdd..018549e 100644 --- a/vger.c +++ b/vger.c @@ -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) { diff --git a/vger.h b/vger.h index ed3b6eb..e86b85d 100644 --- a/vger.h +++ b/vger.h @@ -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