summaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-12-07 14:38:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-12-07 14:38:57 +0000
commitf4797a3b5c98a4a87c333409e15ed2ad5478e8b8 (patch)
treefceccfb6dcf8a87f64ea75312c0515570a092f78 /roff.c
parent413c1bdf1af371c4a4703381a78f68045d85b2fe (diff)
downloadmandoc-f4797a3b5c98a4a87c333409e15ed2ad5478e8b8.tar.gz
mandoc-f4797a3b5c98a4a87c333409e15ed2ad5478e8b8.tar.zst
mandoc-f4797a3b5c98a4a87c333409e15ed2ad5478e8b8.zip
*** empty log message ***
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/roff.c b/roff.c
index 42075b02..b75b0dc2 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.47 2008/12/06 21:10:31 kristaps Exp $ */
+/* $Id: roff.c,v 1.48 2008/12/07 14:38:57 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -653,15 +653,16 @@ roffspecial(struct rofftree *tree, int tok, const char *start,
return(0);
break;
+ case (ROFF_Rv):
+ /* FALLTHROUGH*/
case (ROFF_Sx):
/* FALLTHROUGH*/
case (ROFF_Ex):
- if (1 != sz) {
- roff_err(tree, start, "`%s' expects one arg",
- toknames[tok]);
- return(0);
- }
- break;
+ if (1 == sz)
+ break;
+ roff_err(tree, start, "`%s' expects one arg",
+ toknames[tok]);
+ return(0);
case (ROFF_Sm):
if (1 != sz) {
@@ -841,7 +842,7 @@ roff_Dd(ROFFCALL_ARGS)
argv++;
- if (0 == strcmp(*argv, "$Mdocdate: December 6 2008 $")) {
+ if (0 == strcmp(*argv, "$Mdocdate: December 7 2008 $")) {
t = time(NULL);
if (NULL == localtime_r(&t, &tree->tm))
err(1, "localtime_r");