From a4a53d8a31e7e6944c4722ec387e58d37df429e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 23 Nov 2022 14:43:20 +0800 Subject: [PATCH] fix inc --- c302.c | 3 +-- c302.h | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/c302.c b/c302.c index d420e77..c7bb28d 100644 --- a/c302.c +++ b/c302.c @@ -1,10 +1,9 @@ +#include #include #include #include -#include #include #include -#include #include "c302.h" static void http_error(ERRCODE code, char* msg) { diff --git a/c302.h b/c302.h index 9cb322a..1a0f761 100644 --- a/c302.h +++ b/c302.h @@ -1,6 +1,8 @@ #ifndef _C302_H_ #define _C302_H_ +#include + #define SERVER_STRING "Server: C302 by Fumiama/1.0\r\n" #define HTTP302 "HTTP/1.0 302 Moved Temporarily\r\n" #define LOCATION "Location: " @@ -11,7 +13,7 @@ #define H404 "HTTP/1.0 404 NOT FOUND\r\nContent-Type: text/html\r\n\r\nNot Found\r\n

%s\r\n\r\n" #define H500 "HTTP/1.0 500 Internal Server Error\r\nContent-Type: text/html\r\n\r\n

%s\r\n" const char* types[] = {H400, H404, H500}; -const unsigned char typel[] = {59, 111, 69}; +const uint8_t typel[] = {59, 111, 69}; enum ERRCODE {HTTP400, HTTP404, HTTP500}; typedef enum ERRCODE ERRCODE; @@ -22,6 +24,6 @@ static const char* urls[] = { "https://bocchi.rocks/assets/img/page/character/ikuyo/main.png" // 喜多郁代 }; -static const unsigned short urlsl[] = {62, 62, 59, 61}; +static const uint16_t urlsl[] = {62, 62, 59, 61}; #endif