Commit 7ddae2dd authored by Sebastien Gougeaud's avatar Sebastien Gougeaud Committed by Thomas Leibovici
Browse files

refactor: remove const to admin prototypes when passing by value



Change-Id: If9729240c8275ce984b8091bd4189c35bf6d5aeb
Signed-off-by: default avatarSebastien Gougeaud <sebastien.gougeaud@cea.fr>
Reviewed-on: https://gerrit.ccc.ocre.cea.fr/gerrit/c/phobos/+/6967

Tested-by: default avatarJenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr>
Reviewed-by: default avatarQuentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: default avatarThomas Leibovici <thomas.leibovici@cea.fr>
parent 9c65b62e
......@@ -158,7 +158,7 @@ void phobos_admin_fini(struct admin_handle *adm)
dss_fini(&adm->dss);
}
int phobos_admin_init(struct admin_handle *adm, const bool lrs_required)
int phobos_admin_init(struct admin_handle *adm, bool lrs_required)
{
const char *sock_path;
int rc;
......@@ -223,7 +223,7 @@ int phobos_admin_device_add(struct admin_handle *adm, enum rsc_family family,
* state, to then remove this part of code from the CLI.
*/
int phobos_admin_device_unlock(struct admin_handle *adm, struct pho_id *dev_ids,
const int num_dev)
int num_dev)
{
int rc = 0;
int i;
......
......@@ -55,7 +55,7 @@ void phobos_admin_fini(struct admin_handle *adm);
* \return 0 on success,
* -errno on failure.
*/
int phobos_admin_init(struct admin_handle *adm, const bool lrs_required);
int phobos_admin_init(struct admin_handle *adm, bool lrs_required);
/**
* Inform the LRS that it needs to reload device information following
......@@ -87,7 +87,7 @@ int phobos_admin_device_add(struct admin_handle *adm, enum rsc_family family,
* -errno on failure.
*/
int phobos_admin_device_unlock(struct admin_handle *adm, struct pho_id *dev_ids,
const int num_dev);
int num_dev);
/**
* Load and format a medium to the given fs type.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment