From bba3cbd9d84220f638b96b9d50a9bd8d9821dece Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Wed, 16 Sep 2020 19:36:33 +0200 Subject: [PATCH] Remove noop line causing compilation warning Signed-off-by: Robert Baldyga --- casadm/cas_lib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/casadm/cas_lib.c b/casadm/cas_lib.c index 6086d38..5b64330 100644 --- a/casadm/cas_lib.c +++ b/casadm/cas_lib.c @@ -111,8 +111,6 @@ int vcaslog(int log_level, const char *template, va_list args) goto out; } - timestamp[strnlen(timestamp, SIZE_MAX)-1] = 0; - fseek(log, 0, SEEK_END); fprintf(log, "%s casadm: ", timestamp); vfprintf(log, template, args);