summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Son <seungha.son@samsung.com>2017-11-03 16:57:08 +0900
committerSeungha Son <seungha.son@samsung.com>2017-11-03 16:57:32 +0900
commit931f400652a5fb4be11316c2a81ee88e23db3b6d (patch)
treef5d69da1f772152aeb04e06baf7abe238d073c8a
parent427cc53d833a170d0047d56b9aeec5f2245eff44 (diff)
downloadnotification-931f400652a5fb4be11316c2a81ee88e23db3b6d.tar.gz
notification-931f400652a5fb4be11316c2a81ee88e23db3b6d.tar.bz2
notification-931f400652a5fb4be11316c2a81ee88e23db3b6d.zip
Fix coding rule
Signed-off-by: Seungha Son <seungha.son@samsung.com> Change-Id: I23d5353fbcff76ccd650dadfd2d6944c7af23fda
-rwxr-xr-xsrc/notification_list.c3
-rwxr-xr-xsrc/notification_shared_file.c10
2 files changed, 6 insertions, 7 deletions
diff --git a/src/notification_list.c b/src/notification_list.c
index 2dc8269..30724cd 100755
--- a/src/notification_list.c
+++ b/src/notification_list.c
@@ -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");
diff --git a/src/notification_shared_file.c b/src/notification_shared_file.c
index 6010b68..9bf91e6 100755
--- a/src/notification_shared_file.c
+++ b/src/notification_shared_file.c
@@ -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 char* src_path,
- const char* dst_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;