1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-05 00:10:29 +08:00
This commit is contained in:
源文雨
2022-10-26 15:55:16 +08:00
parent 60cc834753
commit 7c67a3a1f1
2 changed files with 4 additions and 6 deletions

View File

@@ -405,7 +405,7 @@ static FILE *open_file(char* file_path, int lock_type, char* mode) {
file_mode &= ~lock_type;
return NULL;
}
printf("Open file in mode %s\n", mode);
printf("Open file %s in mode %s\n", file_path, mode);
return fp;
}
@@ -556,7 +556,7 @@ static int s3_set_data(threadtimer_t *timer) {
printf("Set data size: %u\n", file_size);
int is_first_data = 0;
if(timer->numbytes == sizeof(uint32_t)) {
if((timer->numbytes = recv(timer->accept_fd, timer->data, TIMERDATSZ, MSG_DONTWAIT)) <= 0) {
if((timer->numbytes = recv(timer->accept_fd, timer->data, TIMERDATSZ, MSG_DONTWAIT)) < 0) {
*(uint32_t*)ret = *(uint32_t*)"erro";
goto S3_RETURN;
}

View File

@@ -11,12 +11,10 @@ $kanban
EOF
echo md5:${md5val##* } | tr -d '\n' >> $3
cat > cmd_seq.txt << EOF
$5set$6
dat
$5$6dat
file
$4
set$6
ver
$6ver
file
$3
quit