Fix coding rule 18/158818/1
authorSeungha Son <seungha.son@samsung.com>
Fri, 3 Nov 2017 07:57:08 +0000 (16:57 +0900)
committerSeungha Son <seungha.son@samsung.com>
Fri, 3 Nov 2017 07:57:32 +0000 (16:57 +0900)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I23d5353fbcff76ccd650dadfd2d6944c7af23fda

src/notification_list.c
src/notification_shared_file.c

index 2dc8269f130c1a55c8a48a0102bc102432a6df4e..30724cd2c3d3929306708beb879b39cff6bc3000 100755 (executable)
@@ -29,7 +29,6 @@
 struct _notification_list {
        notification_list_h prev;
        notification_list_h next;
-
        notification_h noti;
 };
 
@@ -37,7 +36,7 @@ notification_list_h _notification_list_create(void)
 {
        notification_list_h list = NULL;
 
-       list = (notification_list_h) malloc(sizeof(struct _notification_list));
+       list = (notification_list_h)malloc(sizeof(struct _notification_list));
        if (list == NULL) {
                /* LCOV_EXCL_START */
                NOTIFICATION_ERR("Failed to alloc memory");
index 6010b6887a6a853e7c57663e32edb3951be90b76..9bf91e6664bc68591a4c8bef9ab52e7988dcde7d 100755 (executable)
@@ -182,8 +182,8 @@ static bool __is_RO_file(const char *smack_label)
 }
 
 /* file copy from /res to /data */
-int notification_copy_private_file(const charsrc_path,
-                                       const chardst_path)
+int notification_copy_private_file(const char *src_path,
+                                       const char *dst_path)
 {
        int ret = NOTIFICATION_ERROR_NONE;
        GFile *src = NULL;
@@ -336,7 +336,7 @@ static gint __comp_dst_path(gconstpointer a, gconstpointer b)
 }
 /* LCOV_EXCL_STOP */
 
-static sharing_file_info_s * __dup_file_info(sharing_file_info_s *src)
+static sharing_file_info_s *__dup_file_info(sharing_file_info_s *src)
 {
        sharing_file_info_s *file_info;
        file_info = (sharing_file_info_s *)calloc(1, sizeof(sharing_file_info_s));
@@ -411,7 +411,7 @@ static void __make_file_info(char *src_path, char *dst_path,
 
 }
 
-static GList__get_new_file_list(notification_h noti,
+static GList *__get_new_file_list(notification_h noti,
                                GList *shared_file_list,
                                bool *is_overlapping)
 {
@@ -471,7 +471,7 @@ static GList* __get_new_file_list(notification_h noti,
        return new_file_list;
 }
 
-static char__get_shared_dir(notification_h noti)
+static char *__get_shared_dir(notification_h noti)
 {
        char *path = NULL;
        char *dir;