diff options
author | 2011-03-07 01:35:33 +0000 | |
---|---|---|
committer | 2011-03-07 01:35:33 +0000 | |
commit | b058e777acbf34e2fc7e3eb7c4d67c742d4c66ae (patch) | |
tree | 9bec3dc1880da1266da68c4e7bb56b092857c65e /usr.bin/mandoc/man.c | |
parent | The global_int information acpi collects is not used by amd64. (diff) | |
download | wireguard-openbsd-b058e777acbf34e2fc7e3eb7c4d67c742d4c66ae.tar.xz wireguard-openbsd-b058e777acbf34e2fc7e3eb7c4d67c742d4c66ae.zip |
Clean up date handling,
as a first step to get rid of the frequent petty warnings in this area:
- always store dates as strings, not as seconds since the Epoch
- for input, try the three most common formats everywhere
- for unrecognized format, just pass the date though verbatim
- when there is no date at all, still use the current date
Originally triggered by a one-line patch from Tim van der Molen,
<tbvdm at xs4all dot nl>, which is included here.
Feedback and OK on manual parts from jmc@.
"please check this in" kristaps@
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r-- | usr.bin/mandoc/man.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c index ece070e374c..9eba4001fee 100644 --- a/usr.bin/mandoc/man.c +++ b/usr.bin/mandoc/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.55 2011/02/10 00:06:30 schwarze Exp $ */ +/* $Id: man.c,v 1.56 2011/03/07 01:35:33 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -142,8 +142,8 @@ man_free1(struct man *man) free(man->meta.title); if (man->meta.source) free(man->meta.source); - if (man->meta.rawdate) - free(man->meta.rawdate); + if (man->meta.date) + free(man->meta.date); if (man->meta.vol) free(man->meta.vol); if (man->meta.msec) |