Skip to content

Commit

Permalink
Fix warning in listen example
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz authored and tguillem committed Aug 21, 2019
1 parent 6b5a3ad commit 8bd5f80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ static void sighandler(int signum)
{
char s[] = "SIGINT received, exiting ...\n";

write(fileno(stdout), s, sizeof(s));
ssize_t result = write(fileno(stdout), s, sizeof(s));
(void)result;
sigflag = 1;
}

Expand Down

0 comments on commit 8bd5f80

Please sign in to comment.