rename function

This commit is contained in:
prx 2022-08-18 10:58:38 +02:00
parent 504dd3f759
commit b18f3a3c7b
3 changed files with 3 additions and 3 deletions

2
main.c
View File

@ -76,7 +76,7 @@ main(int argc, char **argv)
check_path(path, sizeof(path), hostname, virtualhost);
/* split dir and filename */
get_dir_file(path, dir, sizeof(dir), file, sizeof(file));
split_dir_file(path, dir, sizeof(dir), file, sizeof(file));
/* go to dir */
echdir(dir);

2
vger.c
View File

@ -464,7 +464,7 @@ check_path(char *path, size_t pathsiz, const char *hstnm, int virtualhost)
}
void
get_dir_file(char *path, char *dir, size_t dirsiz, char *file, size_t filesiz)
split_dir_file(char *path, char *dir, size_t dirsiz, char *file, size_t filesiz)
{
char *pos = NULL;

2
vger.h
View File

@ -46,7 +46,7 @@ void check_path(char *, size_t, const char *, int);
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 get_dir_file(char *, char *, size_t, char *, size_t);
void split_dir_file(char *, char *, size_t, char *, size_t);
char * get_hostname(const char *, char *, size_t);
char * get_path(const char *, char *, size_t, int, const char *);
char * get_query(char *, char *, size_t);