From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - cov: remove unused variable setting
Date: Mon, 13 Sep 2021 10:36:19 +0000 (GMT) [thread overview]
Message-ID: <20210913103619.6682F3858002@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=9ba76450f4a206ee48b0b6e49d35c2c33032bb58
Commit: 9ba76450f4a206ee48b0b6e49d35c2c33032bb58
Parent: 3b2a4e3e6f081002ab92f5f78326d2c1dfa879bf
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Sat Sep 11 22:40:31 2021 +0200
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Mon Sep 13 12:34:41 2021 +0200
cov: remove unused variable setting
Since there is no use for &end after strtol, remove it.
---
lib/report/report.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/report/report.c b/lib/report/report.c
index a28744a49..60df417a4 100644
--- a/lib/report/report.c
+++ b/lib/report/report.c
@@ -882,7 +882,6 @@ static int _translate_time_items(struct dm_report *rh, struct time_info *info,
long multiplier = 1;
struct tm tm_now;
time_id_t id;
- char *end;
long num;
struct tm tm; /* absolute time */
time_t t = 0; /* offset into past before absolute time */
@@ -899,7 +898,7 @@ static int _translate_time_items(struct dm_report *rh, struct time_info *info,
if (_is_time_num(id)) {
errno = 0;
- num = strtol(ti->s, &end, 10);
+ num = strtol(ti->s, NULL, 10);
if (errno) {
log_error("_translate_time_items: invalid time.");
return 0;
reply other threads:[~2021-09-13 10:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210913103619.6682F3858002@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.