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
+1
-1
@@ -597,7 +597,7 @@ static __inline__ int does_it_fit_into_dev(__u64 offset, __u64 fs_size)
|
||||
fs_size) ? 1 : 0;
|
||||
}
|
||||
|
||||
static int is_wrong_short_key(struct reiserfs_key *key)
|
||||
static int is_wrong_short_key(const struct reiserfs_key *key)
|
||||
{
|
||||
if (get_key_dirid(key) == 0 || get_key_objectid(key) == 0
|
||||
|| get_key_objectid(key) == 1 || get_key_dirid(key) == ~(__u32) 0
|
||||
|
||||
Reference in new issue
Block a user