Skip to content

Commit 27acbf4

Browse files
SamuelZOUTetsuo Handa
authored andcommitted
tomoyo: use true for bool variable
Fixes coccicheck warning: security/tomoyo/common.c:1028:2-13: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zou Wei <[email protected]> Signed-off-by: Tetsuo Handa <[email protected]>
1 parent 152036d commit 27acbf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/tomoyo/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ static bool tomoyo_select_domain(struct tomoyo_io_buffer *head,
10251025
if (domain)
10261026
head->r.domain = &domain->list;
10271027
else
1028-
head->r.eof = 1;
1028+
head->r.eof = true;
10291029
tomoyo_io_printf(head, "# select %s\n", data);
10301030
if (domain && domain->is_deleted)
10311031
tomoyo_io_printf(head, "# This is a deleted domain.\n");

0 commit comments

Comments
 (0)