From 78625f0d4abbd7c0c6012d7d7ca6a8ec718ba23c Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Wed, 12 Oct 2016 15:45:07 +0900 Subject: [PATCH] Fix signature of pkgmgr_client_set_tep_path Add a const qualifier to tep_path. Change-Id: Ic90623a9a0be2a242dfff212e03333be542b5f6a Signed-off-by: Sangyoon Jang --- client/include/package-manager.h | 2 +- client/src/pkgmgr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/include/package-manager.h b/client/include/package-manager.h index ccfe901..46d1b34 100644 --- a/client/include/package-manager.h +++ b/client/include/package-manager.h @@ -381,7 +381,7 @@ int pkgmgr_client_free(pkgmgr_client *pc); * @retval PKGMGR_R_OK success * @retval PKGMGR_R_EINVAL invalid argument */ -int pkgmgr_client_set_tep_path(pkgmgr_client *pc, char *tep_path, bool tep_move); +int pkgmgr_client_set_tep_path(pkgmgr_client *pc, const char *tep_path, bool tep_move); /** * @brief This API installs package. diff --git a/client/src/pkgmgr.c b/client/src/pkgmgr.c index c9094d0..5207fb8 100644 --- a/client/src/pkgmgr.c +++ b/client/src/pkgmgr.c @@ -426,7 +426,7 @@ static char *__get_type_from_path(const char *pkg_path) return strdup(pkg_type); } -API int pkgmgr_client_set_tep_path(pkgmgr_client *pc, char *tep_path, +API int pkgmgr_client_set_tep_path(pkgmgr_client *pc, const char *tep_path, bool tep_move) { struct pkgmgr_client_t *client = (struct pkgmgr_client_t *) pc; -- 2.34.1