summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-06-17 22:27:35 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-06-17 22:27:35 +0000
commit80657e005326198883c2e86da964452a1881c4ec (patch)
tree18cdeb7cb82ae95159929a9c8a48e4757bd94b2e
parent958b00559d262343bd9376f34ccf52f5739345bd (diff)
strftime returns size_t, not a pointer; no functional change
ok kristaps@
-rw-r--r--usr.bin/mandoc/man_term.c4
-rw-r--r--usr.bin/mandoc/mdoc_term.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c
index 14e3875b55c..0d13cdde61a 100644
--- a/usr.bin/mandoc/man_term.c
+++ b/usr.bin/mandoc/man_term.c
@@ -1,4 +1,4 @@
-/* $Id: man_term.c,v 1.2 2009/06/14 23:00:57 schwarze Exp $ */
+/* $Id: man_term.c,v 1.3 2009/06/17 22:27:34 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -441,7 +441,7 @@ print_foot(struct termp *p, const struct man_meta *meta)
tm = localtime(&meta->date);
- if (NULL == strftime(buf, p->rmargin, "%B %d, %Y", tm))
+ if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))
err(1, "strftime");
term_vspace(p);
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c
index 37e275fa015..b52f4eecb89 100644
--- a/usr.bin/mandoc/mdoc_term.c
+++ b/usr.bin/mandoc/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.4 2009/06/15 02:53:35 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.5 2009/06/17 22:27:34 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -402,7 +402,7 @@ print_foot(struct termp *p, const struct mdoc_meta *meta)
tm = localtime(&meta->date);
- if (NULL == strftime(buf, p->rmargin, "%B %d, %Y", tm))
+ if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))
err(1, "strftime");
(void)strlcpy(os, meta->os, p->rmargin);