reiserfscore: constify struct pointer arguments
There are many cases where functions take pointers to keys, item heads, paths, etc and don't modify them. Let's annotate them properly. Signed-off-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
9b52a79ba2
commit
6daa8a9c5a
16 files changed
+97
-91
No files matched your search
+2
-2
@@ -1008,7 +1008,7 @@ static int bad_node(reiserfs_filsys_t fs, struct buffer_head **path, int h)
|
||||
}
|
||||
|
||||
/* internal node bh must point to block */
|
||||
static int get_pos(struct buffer_head *bh, unsigned long block)
|
||||
static int get_pos(const struct buffer_head *bh, unsigned long block)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -1052,7 +1052,7 @@ static struct reiserfs_key *rkey(struct buffer_head **path, int h)
|
||||
static int bad_path(reiserfs_filsys_t fs, struct buffer_head **path, int h1)
|
||||
{
|
||||
int h = 0;
|
||||
struct reiserfs_key *dk;
|
||||
const struct reiserfs_key *dk;
|
||||
int pos = 0;
|
||||
|
||||
while (path[h])
|
||||
|
||||
Reference in new issue
Block a user