Compare commits
2 Commits
6b295cef95
...
581b4dc5aa
Author | SHA1 | Date | |
---|---|---|---|
581b4dc5aa
|
|||
611ceabfb2
|
@@ -325,7 +325,7 @@ long flines(FILE *file) {
|
||||
|
||||
if (fseek(file, cur_pos, SEEK_SET) != 0)
|
||||
return -1;
|
||||
return lines;
|
||||
return lines + 1;
|
||||
}
|
||||
|
||||
long file_get_line_pos(FILE *file, long line_num) {
|
||||
|
@@ -118,6 +118,7 @@ static int tcp_acceptor(client_ctx_t *ctx) {
|
||||
}
|
||||
|
||||
void tcp_close(client_ctx_t *ctx) {
|
||||
errno = 0;
|
||||
logger_set_prefix("[%*s]%s", INET6_ADDRSTRLEN, ctx->socket.s_addr, ctx->log_prefix);
|
||||
|
||||
sock_close(&ctx->socket);
|
||||
|
Reference in New Issue
Block a user