From ff15e0fa53156b9994da3f726bfe91232de6195a Mon Sep 17 00:00:00 2001 From: kpfleming Date: Fri, 15 Jul 2005 23:00:47 +0000 Subject: add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b --- cdr/cdr_tds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cdr/cdr_tds.c') diff --git a/cdr/cdr_tds.c b/cdr/cdr_tds.c index 1cdb72f68..cadb9dd62 100755 --- a/cdr/cdr_tds.c +++ b/cdr/cdr_tds.c @@ -372,7 +372,7 @@ static void get_date(char *dateField, struct timeval tv) char buf[80]; /* To make sure we have date variable if not insert null to SQL */ - if (tv.tv_sec && tv.tv_usec) + if (!ast_tvzero(tv)) { t = tv.tv_sec; localtime_r(&t, &tm); -- cgit v1.2.3