btrfs-progs: send-stream: use proper type for cmd in read_cmd
authorDavid Sterba <dsterba@suse.com>
Tue, 15 Nov 2016 14:05:46 +0000 (15:05 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 23 Nov 2016 09:50:13 +0000 (10:50 +0100)
We just read and assign the value, there's no reason to use different
types.

Signed-off-by: David Sterba <dsterba@suse.com>
send-stream.c

index c8419ac..913a17f 100644 (file)
@@ -72,7 +72,7 @@ out:
 static int read_cmd(struct btrfs_send_stream *sctx)
 {
        int ret;
-       int cmd;
+       u16 cmd;
        u32 cmd_len;
        char *data;
        u32 pos;