From bcf81d9457fc33b5b21cc5414e17d75e5e75c4d4 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 15 Nov 2016 15:05:46 +0100 Subject: [PATCH] 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 --- send-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;