projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9834e8
)
btrfs-progs: send-stream: use proper type for cmd in read_cmd
author
David Sterba
<dsterba@suse.com>
Tue, 15 Nov 2016 14:05:46 +0000
(15:05 +0100)
committer
David 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
patch
|
blob
|
history
diff --git
a/send-stream.c
b/send-stream.c
index
c8419ac
..
913a17f
100644
(file)
--- 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;