Fix signature of pkgmgr_client_set_tep_path 02/91902/2
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 12 Oct 2016 06:45:07 +0000 (15:45 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 12 Oct 2016 06:45:07 +0000 (15:45 +0900)
Add a const qualifier to tep_path.

Change-Id: Ic90623a9a0be2a242dfff212e03333be542b5f6a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
client/include/package-manager.h
client/src/pkgmgr.c

index ccfe901cf7c965bd05295033a39b9a7193b91f59..46d1b3422f4f0027cc5aa7507d66992edf709aef 100644 (file)
@@ -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.
index c9094d0eea0fa749c284fc1e0e43dc0aaa81e9ed..5207fb81fd860cfa4d04c4d988be4d61c4e1dd52 100644 (file)
@@ -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;