summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-15 15:05:46 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-23 10:50:13 +0100
commitbcf81d9457fc33b5b21cc5414e17d75e5e75c4d4 (patch)
tree030060028c0a9e8c6e95ca5f3c9f2304b7bb8fff
parentf9834e87d412282e4f7a7a81c04df7d91aa1652c (diff)
btrfs-progs: send-stream: use proper type for cmd in read_cmd
We just read and assign the value, there's no reason to use different types. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--send-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/send-stream.c b/send-stream.c
index c8419ac3..913a17ff 100644
--- a/send-stream.c
+++ b/send-stream.c
@@ -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;