1
0
mirror of https://github.com/fumiama/CMoe-Counter.git synced 2024-11-23 22:00:56 +01:00

fix(compile): remove c99 restriction

This commit is contained in:
源文雨 2024-04-12 22:51:42 +09:00
parent 3a9536d08e
commit c1fe6dc3f5
2 changed files with 1 additions and 5 deletions

View File

@ -5,10 +5,6 @@ SET(CMAKE_BUILD_TYPE "Release")
include_directories("/usr/local/include")
link_directories("/usr/local/lib")
#c99
add_compile_options(-std=c99)
message(STATUS "optional:-std=c99")
add_executable(cmoe cmoe.c)
add_executable(cmoeditor editor.c)

2
cmoe.c
View File

@ -199,7 +199,7 @@ int main(int argc, char **argv) {
theme = get_arg(theme + 6);
}
char* reg = strstr(QS, "reg=");
int fd;
int fd;
if (!reg) {
if ((fd=create_or_open(datfile)) < 0) {
http_error(HTTP500, "Open File Error.");