diff options
| author | christos <christos@NetBSD.org> | 2021-06-21 03:04:27 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2021-06-21 03:04:27 +0000 |
| commit | 91309da948c73e1da92f20b01282632761bc0e06 (patch) | |
| tree | c9a5f31f8a75244a2ab4768d38e0917d0338dd44 /lib/libdm/libdm_ioctl.c | |
| parent | 1d05fbca50cfa7251ca62926eca9b2bd6caeea78 (diff) | |
fix proplib deprecation
Diffstat (limited to 'lib/libdm/libdm_ioctl.c')
| -rw-r--r-- | lib/libdm/libdm_ioctl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libdm/libdm_ioctl.c b/lib/libdm/libdm_ioctl.c index 05f264a944a..460c0b93e8d 100644 --- a/lib/libdm/libdm_ioctl.c +++ b/lib/libdm/libdm_ioctl.c @@ -266,7 +266,7 @@ libdm_task_get_name(libdm_task_t libdm_task) { char *name; - if (!prop_dictionary_get_cstring_nocopy(libdm_task->ldm_task, + if (!prop_dictionary_get_string(libdm_task->ldm_task, DM_IOCTL_NAME, (const char **)&name)) return NULL; @@ -291,7 +291,7 @@ libdm_task_get_uuid(libdm_task_t libdm_task) { char *uuid; - if (!prop_dictionary_get_cstring_nocopy(libdm_task->ldm_task, + if (!prop_dictionary_get_string(libdm_task->ldm_task, DM_IOCTL_UUID, (const char **)&uuid)) return NULL; @@ -304,7 +304,7 @@ libdm_task_get_command(libdm_task_t libdm_task) { char *command; - if (!prop_dictionary_get_cstring_nocopy(libdm_task->ldm_task, + if (!prop_dictionary_get_string(libdm_task->ldm_task, DM_IOCTL_COMMAND, (const char **)&command)) return NULL; @@ -755,7 +755,7 @@ libdm_table_get_target(libdm_table_t libdm_table) { char *target; - if (!prop_dictionary_get_cstring_nocopy(libdm_table->ldm_tbl, DM_TABLE_TYPE, + if (!prop_dictionary_get_string(libdm_table->ldm_tbl, DM_TABLE_TYPE, (const char **)&target)) return NULL; @@ -782,7 +782,7 @@ libdm_table_get_params(libdm_table_t libdm_table) { char *params; - if (!prop_dictionary_get_cstring_nocopy(libdm_table->ldm_tbl, DM_TABLE_PARAMS, + if (!prop_dictionary_get_string(libdm_table->ldm_tbl, DM_TABLE_PARAMS, (const char **)¶ms)) return NULL; @@ -816,7 +816,7 @@ libdm_target_get_name(libdm_target_t libdm_target) { char *name; - if (!prop_dictionary_get_cstring_nocopy(libdm_target->ldm_trgt, + if (!prop_dictionary_get_string(libdm_target->ldm_trgt, DM_TARGETS_NAME, (const char **)&name)) return NULL; @@ -860,7 +860,7 @@ libdm_dev_get_name(libdm_dev_t libdm_dev) { char *name; - if (!prop_dictionary_get_cstring_nocopy(libdm_dev->ldm_dev, + if (!prop_dictionary_get_string(libdm_dev->ldm_dev, DM_DEV_NAME, (const char **)&name)) return NULL; |
