diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 23:00:47 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-15 23:00:47 +0000 |
commit | ff15e0fa53156b9994da3f726bfe91232de6195a (patch) | |
tree | 896015cada90b49858e1bf6503d9583704a56179 /cdr/cdr_csv.c | |
parent | c05cf07847cb384ba66aa29d5eda580eda413ffb (diff) |
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
Diffstat (limited to 'cdr/cdr_csv.c')
-rwxr-xr-x | cdr/cdr_csv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr/cdr_csv.c b/cdr/cdr_csv.c index bcf20fead..2689a9fb6 100755 --- a/cdr/cdr_csv.c +++ b/cdr/cdr_csv.c @@ -123,7 +123,7 @@ static int append_date(char *buf, struct timeval tv, size_t bufsize) t = tv.tv_sec; if (strlen(buf) > bufsize - 3) return -1; - if (!tv.tv_sec && !tv.tv_usec) { + if (ast_tvzero(tv)) { strncat(buf, ",", bufsize - strlen(buf) - 1); return 0; } |