git: c3f945eac453 - main - libc: Remove leftover comments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Feb 2026 13:57:48 UTC
The branch main has been updated by obiwac:
URL: https://cgit.FreeBSD.org/src/commit/?id=c3f945eac4538de572600787a73221f2549c62c8
commit c3f945eac4538de572600787a73221f2549c62c8
Author: Aymeric Wibo <obiwac@FreeBSD.org>
AuthorDate: 2026-02-12 13:55:01 +0000
Commit: Aymeric Wibo <obiwac@FreeBSD.org>
CommitDate: 2026-02-12 13:57:38 +0000
libc: Remove leftover comments
These comments refer to a comment in div.c which doesn't exist anymore.
Fixes: 7c7299df76e2 ("libc: Remove support for pre-C99 C standards")
Sponsored by: Klara, Inc.
---
lib/libc/stdlib/imaxdiv.c | 1 -
lib/libc/stdlib/ldiv.c | 2 --
lib/libc/stdlib/lldiv.c | 1 -
3 files changed, 4 deletions(-)
diff --git a/lib/libc/stdlib/imaxdiv.c b/lib/libc/stdlib/imaxdiv.c
index bf9737a3c47a..a8b4df2f3904 100644
--- a/lib/libc/stdlib/imaxdiv.c
+++ b/lib/libc/stdlib/imaxdiv.c
@@ -28,7 +28,6 @@
#include <inttypes.h>
-/* See comments in div.c for implementation details. */
imaxdiv_t
imaxdiv(intmax_t numer, intmax_t denom)
{
diff --git a/lib/libc/stdlib/ldiv.c b/lib/libc/stdlib/ldiv.c
index 4c73bcc14af4..7b785ef66c16 100644
--- a/lib/libc/stdlib/ldiv.c
+++ b/lib/libc/stdlib/ldiv.c
@@ -39,8 +39,6 @@ ldiv(long num, long denom)
{
ldiv_t r;
- /* see div.c for comments */
-
r.quot = num / denom;
r.rem = num % denom;
diff --git a/lib/libc/stdlib/lldiv.c b/lib/libc/stdlib/lldiv.c
index 6feeb74bacd6..cdce0a4f6a27 100644
--- a/lib/libc/stdlib/lldiv.c
+++ b/lib/libc/stdlib/lldiv.c
@@ -28,7 +28,6 @@
#include <stdlib.h>
-/* See comments in div.c for implementation details. */
lldiv_t
lldiv(long long numer, long long denom)
{