Skip to contentSkip to conversation

master - lvmcmdline: use long int for number returned by strtol

PATCH Peter Rajnoha 1 participant 1 message Aug 10, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2fed8d8515644d25c24e8f62b450d80d34911970
Commit:        2fed8d8515644d25c24e8f62b450d80d34911970
Parent:        480c1c95993a1a2903e580ca402ba6368088decd
Author:        Peter Rajnoha <[email protected]>
AuthorDate:    Wed Aug 10 09:10:28 2016 +0200
Committer:     Peter Rajnoha <[email protected]>
CommitterDate: Wed Aug 10 09:10:37 2016 +0200

lvmcmdline: use long int for number returned by strtol

---
 tools/lvmcmdline.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/lvmcmdline.c +1 -1
index af38799..9a4deb7 100644
@@ -1853,7 +1853,7 @@ static int _do_get_custom_fd(const char *env_var_name, int *fd)
 {
 	const char *str;
 	char *endptr;
-	int tmp_fd;
+	long int tmp_fd;
 
 	*fd = -1;