Skip to content

Commit 0d3e823

Browse files
authored
Merge pull request EZLippi#21 from EZLippi/revert-20-master
Revert "rename seve_file to sever_file"
2 parents df7aa8b + 363b985 commit 0d3e823

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

httpd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void execute_cgi(int, const char *, const char *, const char *);
4343
int get_line(int, char *, int);
4444
void headers(int, const char *);
4545
void not_found(int);
46-
void sever_file(int, const char *);
46+
void serve_file(int, const char *);
4747
int startup(u_short *);
4848
void unimplemented(int);
4949

@@ -125,7 +125,7 @@ void accept_request(void *arg)
125125
(st.st_mode & S_IXOTH) )
126126
cgi = 1;
127127
if (!cgi)
128-
sever_file(client, path);
128+
serve_file(client, path);
129129
else
130130
execute_cgi(client, path, method, query_string);
131131
}
@@ -397,7 +397,7 @@ void not_found(int client)
397397
* file descriptor
398398
* the name of the file to serve */
399399
/**********************************************************************/
400-
void sever_file(int client, const char *filename)
400+
void serve_file(int client, const char *filename)
401401
{
402402
FILE *resource = NULL;
403403
int numchars = 1;

0 commit comments

Comments
 (0)