dmu_objset_rename is an alias for dsl_dataset_rename, but differs in

constness of the first argument. Newer clang checks for this and
prohibits it, so just be consistent by constifying the latter.
This commit is contained in:
joerg 2016-02-19 19:25:22 +00:00
parent c04b415846
commit e9ae0934d6
2 changed files with 2 additions and 2 deletions

View File

@ -2304,7 +2304,7 @@ dsl_valid_rename(const char *oldname, void *arg)
#pragma weak dmu_objset_rename = dsl_dataset_rename
int
dsl_dataset_rename(char *oldname, const char *newname, boolean_t recursive)
dsl_dataset_rename(const char *oldname, const char *newname, boolean_t recursive)
{
dsl_dir_t *dd;
dsl_dataset_t *ds;

View File

@ -192,7 +192,7 @@ dsl_checkfunc_t dsl_dataset_destroy_check;
dsl_syncfunc_t dsl_dataset_destroy_sync;
dsl_checkfunc_t dsl_dataset_snapshot_check;
dsl_syncfunc_t dsl_dataset_snapshot_sync;
int dsl_dataset_rename(char *name, const char *newname, boolean_t recursive);
int dsl_dataset_rename(const char *name, const char *newname, boolean_t recursive);
int dsl_dataset_promote(const char *name, char *conflsnap);
int dsl_dataset_clone_swap(dsl_dataset_t *clone, dsl_dataset_t *origin_head,
boolean_t force);