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. --- man_action.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'man_action.c') diff --git a/man_action.c b/man_action.c index 838cd263..a39f05fb 100644 --- a/man_action.c +++ b/man_action.c @@ -1,4 +1,4 @@ -/* $Id: man_action.c,v 1.22 2009/10/30 05:58:37 kristaps Exp $ */ +/* $Id: man_action.c,v 1.23 2009/10/31 06:10:58 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -17,7 +17,6 @@ #include #include -#include #include #include @@ -149,7 +148,6 @@ post_TH(struct man *m) n = n->next; assert(n); - errno = 0; lval = strtol(n->string, &ep, 10); if (n->string[0] != '\0' && *ep == '\0') m->meta.msec = (int)lval; -- cgit v1.2.3