From: Sangyoon Jang Date: Wed, 12 Oct 2016 06:45:07 +0000 (+0900) Subject: Fix signature of pkgmgr_client_set_tep_path X-Git-Tag: submit/tizen/20161012.064511~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F02%2F91902%2F2;p=platform%2Fcore%2Fappfw%2Fslp-pkgmgr.git Fix signature of pkgmgr_client_set_tep_path Add a const qualifier to tep_path. Change-Id: Ic90623a9a0be2a242dfff212e03333be542b5f6a Signed-off-by: Sangyoon Jang --- 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;