Skip to content

Commit

Permalink
Resolve write(2) warning
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbright committed Nov 30, 2024
1 parent baffd86 commit 674d4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simclist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ int ks_list_dump_filedescriptor(const ks_list_t *restrict l, int fd, ks_size_t *
WRITE_ERRCHECK(fd, ser_buf, bufsize);
}
else { /* speculation found broken */
WRITE_ERRCHECK(fd, &bufsize, sizeof(ks_size_t));
WRITE_ERRCHECK(fd, &bufsize, sizeof(uint32_t));
WRITE_ERRCHECK(fd, ser_buf, bufsize);
}
ks_pool_free(&ser_buf);
Expand All @@ -1379,7 +1379,7 @@ int ks_list_dump_filedescriptor(const ks_list_t *restrict l, int fd, ks_size_t *
WRITE_ERRCHECK(fd, x->data, bufsize);
}
else {
WRITE_ERRCHECK(fd, &bufsize, sizeof(ks_size_t));
WRITE_ERRCHECK(fd, &bufsize, sizeof(uint32_t));
WRITE_ERRCHECK(fd, x->data, bufsize);
}
}
Expand Down

0 comments on commit 674d4cc

Please sign in to comment.