commit | 45054cbec0e624de3b79a795d7dfe1c64cdea934 | [log] [tgz] |
---|---|---|
author | Saurabh De <SDe@fusionio.com> | Tue Oct 09 14:46:24 2012 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Oct 09 14:46:24 2012 -0600 |
tree | 52e02032b1904b8bb1019a1e68916a98e7142856 | |
parent | a4cfc4775cc1c8f1eb9b7ed5ffd3024d9be6747c [diff] [blame] |
solaris: fix compile error on ctime_r() On Solaris, it takes a 3rd length argument. Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/stat.c b/stat.c index 2665952..d041ef3 100644 --- a/stat.c +++ b/stat.c
@@ -534,7 +534,7 @@ return; time(&time_p); - ctime_r((const time_t *) &time_p, time_buf); + os_ctime_r((const time_t *) &time_p, time_buf, sizeof(time_buf)); if (!ts->error) { log_info("%s: (groupid=%d, jobs=%d): err=%2d: pid=%d: %s",