From ba498cb60f96f987b45737da4355ce142280c3d8 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Thu, 26 Nov 2020 11:19:10 +0530 Subject: [PATCH] bsd-ifaddrs: improve comments PR-URL: https://github.com/libuv/libuv/pull/3031 Reviewed-By: Santiago Gimeno Reviewed-By: Richard Lau Reviewed-By: Jameson Nash --- src/unix/bsd-ifaddrs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/unix/bsd-ifaddrs.c b/src/unix/bsd-ifaddrs.c index 5223ab48..e48934bc 100644 --- a/src/unix/bsd-ifaddrs.c +++ b/src/unix/bsd-ifaddrs.c @@ -42,8 +42,8 @@ static int uv__ifaddr_exclude(struct ifaddrs *ent, int exclude_type) { return 1; #if !defined(__CYGWIN__) && !defined(__MSYS__) /* - * If `exclude_type` is `UV__EXCLUDE_IFPHYS`, just see whether `sa_family` - * equals to `AF_LINK` or not. Otherwise, the result depends on the operation + * If `exclude_type` is `UV__EXCLUDE_IFPHYS`, return whether `sa_family` + * equals `AF_LINK`. Otherwise, the result depends on the operating * system with `AF_LINK` or `PF_INET`. */ if (exclude_type == UV__EXCLUDE_IFPHYS) @@ -53,7 +53,7 @@ static int uv__ifaddr_exclude(struct ifaddrs *ent, int exclude_type) { defined(__HAIKU__) /* * On BSD getifaddrs returns information related to the raw underlying - * devices. We're not interested in this information. + * devices. We're not interested in this information. */ if (ent->ifa_addr->sa_family == AF_LINK) return 1;