aboutsummaryrefslogtreecommitdiff
path: root/miscutils/ts.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/ts.c')
-rw-r--r--miscutils/ts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/ts.c b/miscutils/ts.c
index f2d367654..6e5d77bda 100644
--- a/miscutils/ts.c
+++ b/miscutils/ts.c
@@ -47,13 +47,13 @@ int ts_main(int argc UNUSED_PARAM, char **argv)
47 47
48#define date_buf bb_common_bufsiz1 48#define date_buf bb_common_bufsiz1
49 setup_common_bufsiz(); 49 setup_common_bufsiz();
50 gettimeofday(&base, NULL); 50 xgettimeofday(&base);
51 51
52 while ((line = xmalloc_fgets(stdin)) != NULL) { 52 while ((line = xmalloc_fgets(stdin)) != NULL) {
53 struct timeval ts; 53 struct timeval ts;
54 struct tm tm_time; 54 struct tm tm_time;
55 55
56 gettimeofday(&ts, NULL); 56 xgettimeofday(&ts);
57 if (opt) { 57 if (opt) {
58 /* -i and/or -s */ 58 /* -i and/or -s */
59 struct timeval ts1 = ts1; 59 struct timeval ts1 = ts1;