1
0
mirror of https://github.com/fumiama/simple-http-server.git synced 2026-06-05 08:40:24 +08:00

add ignore

This commit is contained in:
源文雨
2021-06-07 20:55:49 +08:00
parent a181a3b263
commit 6798938c79
2 changed files with 7 additions and 6 deletions

3
.gitignore vendored
View File

@@ -51,4 +51,5 @@ Module.symvers
Mkfile.old
dkms.conf
build
build
.DS_Store

View File

@@ -26,7 +26,7 @@
#define ISspace(x) isspace((int)(x))
#define SERVER_STRING "Server: tinyhttpd edited by fumiama/0.1.0\r\n"
#define SERVER_STRING "Server: TinyHttpd modified by Fumiama/1.0\r\n"
void accept_request(void *);
void bad_request(int);
@@ -440,11 +440,11 @@ void serve_file(int client, const char *filename) {
* Returns: the socket */
/**********************************************************************/
#ifdef LISTEN_ON_IPV6
static socklen_t struct_len = sizeof(struct sockaddr_in6);
static struct sockaddr_in6 name;
static socklen_t struct_len = sizeof(struct sockaddr_in6);
static struct sockaddr_in6 name;
#else
static socklen_t struct_len = sizeof(struct sockaddr_in);
static struct sockaddr_in name;
static socklen_t struct_len = sizeof(struct sockaddr_in);
static struct sockaddr_in name;
#endif
int startup(u_short *port) {