diff --git a/CMakeLists.txt b/CMakeLists.txt index e87d805..2dba913 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/cmoe.c b/cmoe.c index 0914769..d56045d 100644 --- a/cmoe.c +++ b/cmoe.c @@ -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.");