Module Name: src Committed By: riastradh Date: Sun Oct 13 01:30:45 UTC 2024
Modified Files: src/share/man/man3: tm.3 Log Message: tm(3): Fix type of tm_zone again, and describe it as const. It is `char *', not `char'. But it's also not supposed to be written to, as kre@ noted, so just document it as `const' even though it's technically not declared that way, presumably for expedience of managing it with malloc/free internally. PR lib/58651: tm(3): wrong type in man page for tm_gmtoff To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/share/man/man3/tm.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man3/tm.3 diff -u src/share/man/man3/tm.3:1.6 src/share/man/man3/tm.3:1.7 --- src/share/man/man3/tm.3:1.6 Wed Aug 28 14:36:19 2024 +++ src/share/man/man3/tm.3 Sun Oct 13 01:30:45 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: tm.3,v 1.6 2024/08/28 14:36:19 riastradh Exp $ +.\" $NetBSD: tm.3,v 1.7 2024/10/13 01:30:45 riastradh Exp $ .\" .\" Copyright (c) 2011 Jukka Ruohonen <jruoho...@iki.fi> .\" All rights reserved. @@ -69,7 +69,7 @@ In addition, the following NetBSD-specif "Type " "Field " "Months since January 1" .It Sy Type Ta Sy Field Ta Sy Represents .It Vt long Ta Va tm_gmtoff Ta Offset from UTC in seconds -.It Vt char Ta Va tm_zone Ta Timezone abbreviation +.It Vt "const char *" Ta Va tm_zone Ta Timezone abbreviation .El .Pp The