Skip to content

Commit 75ccbc5

Browse files
committed
Use bool instead of grn_bool in com.{c,h}
groongaGH-1638
1 parent 94f7779 commit 75ccbc5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/com.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ grn_com_event_start_accept(grn_ctx *ctx, grn_com_event *ev)
482482
GRN_API_ENTER;
483483
if (!grn_com_event_mod(ctx, ev, com->fd, GRN_COM_POLLIN, NULL)) {
484484
if (listen(com->fd, ev->listen_backlog) == 0) {
485-
com->accepting = GRN_TRUE;
485+
com->accepting = true;
486486
} else {
487487
SOERR("listen - start accept");
488488
}
@@ -500,7 +500,7 @@ grn_com_event_stop_accept(grn_ctx *ctx, grn_com_event *ev)
500500
GRN_API_ENTER;
501501
if (!grn_com_event_mod(ctx, ev, com->fd, 0, NULL)) {
502502
if (listen(com->fd, 0) == 0) {
503-
com->accepting = GRN_FALSE;
503+
com->accepting = false;
504504
} else {
505505
SOERR("listen - disable accept");
506506
}
@@ -1144,7 +1144,7 @@ grn_com_sopen(grn_ctx *ctx, grn_com_event *ev,
11441144
if (!(cs = GRN_CALLOC(sizeof(grn_com)))) { goto exit; }
11451145
cs->fd = lfd;
11461146
}
1147-
cs->accepting = GRN_TRUE;
1147+
cs->accepting = true;
11481148
exit :
11491149
if (!cs && lfd != 1) { grn_sock_close(lfd); }
11501150
if (bind_address_info) { freeaddrinfo(bind_address_info); }

lib/grn_com.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ struct _grn_com {
114114
grn_com_queue new_;
115115
grn_com_event *ev;
116116
void *opaque;
117-
grn_bool accepting;
117+
bool accepting;
118118
};
119119

120120
struct _grn_com_event {

0 commit comments

Comments
 (0)