1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-08 01:51:32 +08:00

fix: non-bsd

This commit is contained in:
源文雨
2023-03-17 12:33:44 +08:00
parent 4c3dcf616c
commit 23290f4d93

View File

@@ -549,7 +549,7 @@ static int s1_get(threadtimer_t *timer) { //get kanban
timer->is_open = 0;
close_file(timer);
int r = send_all(kanban_path, timer);
if(strnstr(timer->data, "quit", timer->numbytes)) {
if(strstr(timer->data, "quit")) {
puts("Found last cmd is quit");
timer->numbytes = 0;
return 0;
@@ -567,7 +567,7 @@ static int s1_get(threadtimer_t *timer) { //get kanban
}
}
int r = close_file_and_send(timer, "null", 4);
if(strnstr(timer->data, "quit", timer->numbytes)) {
if(strstr(timer->data, "quit")) {
puts("Found last cmd is quit");
return 0;
}