Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
btrfsprogs
2006-btrfs-constify-some-function-parameters.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2006-btrfs-constify-some-function-parameters.patch of Package btrfsprogs
From: Jeff Mahoney <jeffm@suse.com> Subject: btrfs: constify some function parameters Signed-off-by: Jeff Mahoney <jeffm@suse.com> --- ctree.h | 4 ++-- disk-io.c | 3 ++- disk-io.h | 3 ++- file-item.c | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) --- a/ctree.h +++ b/ctree.h @@ -2355,10 +2355,10 @@ int btrfs_insert_file_extent(struct btrf u64 num_bytes); int btrfs_insert_inline_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid, - u64 offset, char *buffer, size_t size); + u64 offset, const char *buffer, size_t size); int btrfs_csum_file_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 alloc_end, - u64 bytenr, char *data, size_t len); + u64 bytenr, const char *data, size_t len); int btrfs_csum_truncate(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_path *path, u64 isize); --- a/disk-io.c +++ b/disk-io.c @@ -60,7 +60,8 @@ static int check_tree_block(struct btrfs return ret; } -u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len) +u32 btrfs_csum_data(struct btrfs_root *root, const char *data, + u32 seed, size_t len) { return crc32c(seed, data, len); } --- a/disk-io.h +++ b/disk-io.h @@ -97,7 +97,8 @@ int btrfs_buffer_uptodate(struct extent_ int btrfs_set_buffer_uptodate(struct extent_buffer *buf); int wait_on_tree_block_writeback(struct btrfs_root *root, struct extent_buffer *buf); -u32 btrfs_csum_data(struct btrfs_root *root, char *data, u32 seed, size_t len); +u32 btrfs_csum_data(struct btrfs_root *root, const char *data, + u32 seed, size_t len); void btrfs_csum_final(u32 crc, char *result); int btrfs_commit_transaction(struct btrfs_trans_handle *trans, --- a/file-item.c +++ b/file-item.c @@ -72,7 +72,7 @@ out: int btrfs_insert_inline_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 objectid, - u64 offset, char *buffer, size_t size) + u64 offset, const char *buffer, size_t size) { struct btrfs_key key; struct btrfs_path *path; @@ -169,7 +169,7 @@ fail: int btrfs_csum_file_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, u64 alloc_end, - u64 bytenr, char *data, size_t len) + u64 bytenr, const char *data, size_t len) { int ret = 0; struct btrfs_key file_key;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor