mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-30 18:56:23 +03:00
Throw const on some strings
In C, const indicates to the reader that mutation will not occur. It can also serve as a hint about ownership. Add const in a few places where it makes sense. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org> Closes #10997
This commit is contained in:
committed by
Brian Behlendorf
parent
a09e3a8594
commit
47e3dba972
@@ -52,11 +52,7 @@ extern int zfs_dirent_lookup(znode_t *, const char *, znode_t **, int);
|
||||
extern int zfs_link_create(znode_t *, const char *, znode_t *, dmu_tx_t *, int);
|
||||
extern int zfs_link_destroy(znode_t *, const char *, znode_t *, dmu_tx_t *, int,
|
||||
boolean_t *);
|
||||
#if 0
|
||||
extern int zfs_dirlook(vnode_t *, const char *, vnode_t **, int);
|
||||
#else
|
||||
extern int zfs_dirlook(znode_t *, const char *name, znode_t **);
|
||||
#endif
|
||||
extern void zfs_mknode(znode_t *, vattr_t *, dmu_tx_t *, cred_t *,
|
||||
uint_t, znode_t **, zfs_acl_ids_t *);
|
||||
extern void zfs_rmnode(znode_t *);
|
||||
|
||||
Reference in New Issue
Block a user