]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: don't use unsigned for fd in lnvm-nvme.c
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 20 Aug 2018 00:36:06 +0000 (20:36 -0400)
committerKeith Busch <keith.busch@intel.com>
Mon, 20 Aug 2018 18:41:08 +0000 (12:41 -0600)
Change the data type of the fd from unsigned int -> int.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
lnvm-nvme.c

index 5130919018055f5f3b3d34595ef36dfa5d3dd0f3..754931af0debff7247ac8d03b78bfaddabcb2dca 100644 (file)
@@ -95,7 +95,8 @@ static int lnvm_id_ns(int argc, char **argv, struct command *cmd, struct plugin
        const char *raw_binary = "show infos in binary format";
        const char *human_readable = "show infos in readable format";
        const char *namespace_id = "identifier of desired namespace. default: 1";
-       unsigned int fd, flags = 0;
+       unsigned int flags = 0;
+       int fd;
 
        struct config {
                __u32 namespace_id;