aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roff.c
diff options
context:
space:
mode:
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");