Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man3 timeradd.3: declare timespeccmp parameters as...



details:   https://anonhg.NetBSD.org/src/rev/07025c5b03b1
branches:  trunk
changeset: 959759:07025c5b03b1
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Feb 23 16:47:04 2021 +0000

description:
timeradd.3: declare timespeccmp parameters as const

Comparison is implemented as a read-only operation.

diffstat:

 share/man/man3/timeradd.3 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fddd0586acd4 -r 07025c5b03b1 share/man/man3/timeradd.3
--- a/share/man/man3/timeradd.3 Tue Feb 23 16:29:52 2021 +0000
+++ b/share/man/man3/timeradd.3 Tue Feb 23 16:47:04 2021 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: timeradd.3,v 1.9 2021/02/23 09:28:00 wiz Exp $
+.\" $NetBSD: timeradd.3,v 1.10 2021/02/23 16:47:04 rillig Exp $
 .\"
 .\" Copyright (c) 2009 Jukka Ruohonen <jruohonen%iki.fi@localhost>
 .\" Copyright (c) 1999 Kelly Yancey <kbyanc%posi.net@localhost>
@@ -59,7 +59,7 @@
 .Ft int
 .Fn timespecisset "struct timespec *ts"
 .Ft int
-.Fn timespeccmp "struct timespec *a" "struct timespec *b" CMP
+.Fn timespeccmp "const struct timespec *a" "const struct timespec *b" CMP
 .Sh DESCRIPTION
 These macros are provided for manipulating the
 .Fa timeval



Home | Main Index | Thread Index | Old Index