From a1af4f3969c284fb243f1c0534b332232d54dd98 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 31 Oct 2009 06:10:57 +0000 Subject: Using perror() instead of fprintf for failure from library functions. --- mdoc_action.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mdoc_action.c') diff --git a/mdoc_action.c b/mdoc_action.c index 72c0e085..56057e06 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_action.c,v 1.47 2009/10/30 18:50:11 kristaps Exp $ */ +/* $Id: mdoc_action.c,v 1.48 2009/10/31 06:10:58 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -19,7 +19,6 @@ #endif #include -#include #include #include #include @@ -504,7 +503,6 @@ post_dt(POST_ARGS) if (cp) { /* FIXME: where is strtonum!? */ m->meta.vol = mandoc_strdup(cp); - errno = 0; lval = strtol(nn->string, &ep, 10); if (nn->string[0] != '\0' && *ep == '\0') m->meta.msec = (int)lval; -- cgit v1.2.3