hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 63a5a771b6d8abb183e3bbe82a4edffdb95cacab
parent 3bc51a7939630240d0631c628cce6f8a7a9b3dd9
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 23 May 2021 15:06:42 -0400

net+linux: fix setsockopt return value

This will be fixed properly when we implement mandatory return from
expression lists.

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mnet/+linux/util.ha | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/net/+linux/util.ha b/net/+linux/util.ha @@ -10,6 +10,7 @@ fn setsockopt(sockfd: int, option: int, value: bool) (void | rt::errno) = { let val: int = if (value) 1 else 0; rt::setsockopt(sockfd, rt::SOL_SOCKET, option, &val: *void, size(int): u32)?; + return; }; fn setfcntl(sockfd: int, flag: int) (void | rt::errno) = {