mirror of
https://github.com/fumiama/simple-http-server.git
synced 2026-06-10 21:16:26 +08:00
add ignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -51,4 +51,5 @@ Module.symvers
|
|||||||
Mkfile.old
|
Mkfile.old
|
||||||
dkms.conf
|
dkms.conf
|
||||||
|
|
||||||
build
|
build
|
||||||
|
.DS_Store
|
||||||
|
|||||||
10
server.c
10
server.c
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#define ISspace(x) isspace((int)(x))
|
#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 accept_request(void *);
|
||||||
void bad_request(int);
|
void bad_request(int);
|
||||||
@@ -440,11 +440,11 @@ void serve_file(int client, const char *filename) {
|
|||||||
* Returns: the socket */
|
* Returns: the socket */
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
#ifdef LISTEN_ON_IPV6
|
#ifdef LISTEN_ON_IPV6
|
||||||
static socklen_t struct_len = sizeof(struct sockaddr_in6);
|
static socklen_t struct_len = sizeof(struct sockaddr_in6);
|
||||||
static struct sockaddr_in6 name;
|
static struct sockaddr_in6 name;
|
||||||
#else
|
#else
|
||||||
static socklen_t struct_len = sizeof(struct sockaddr_in);
|
static socklen_t struct_len = sizeof(struct sockaddr_in);
|
||||||
static struct sockaddr_in name;
|
static struct sockaddr_in name;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int startup(u_short *port) {
|
int startup(u_short *port) {
|
||||||
|
|||||||
Reference in New Issue
Block a user