Janitorial: '<foo>*' -> '<foo> *' 46/225546/3
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 20 Feb 2020 18:26:08 +0000 (19:26 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 21 Feb 2020 14:21:39 +0000 (15:21 +0100)
Place pointer signature consistently with rest of codebase.

Change-Id: Ie183a11724fe886036cf2929ca6acdfac989da9b

src/crash-manager/dbus_notify.c
src/crash-manager/so-info.c
src/shared/util.c
src/shared/util.h

index 41126c5..ca010e5 100644 (file)
@@ -149,14 +149,14 @@ strdup_error:
        goto out;
 }
 
-static GVariantbuild_legacy_message_data(const struct NotifyParams *notify_params)
+static GVariant *build_legacy_message_data(const struct NotifyParams *notify_params)
 {
        assert(notify_params);
 
        return g_variant_new("(ssss)", notify_params->cmd_name, notify_params->cmd_path, notify_params->appid, notify_params->pkgid);
 }
 
-static GVariantbuild_message_data(const struct NotifyParams *notify_params)
+static GVariant *build_message_data(const struct NotifyParams *notify_params)
 {
        assert(notify_params);
 
index d95a927..a9ff6ef 100644 (file)
@@ -204,7 +204,7 @@ static char *get_exe_filename(char *line)
        return NULL;
 }
 
-GSListget_filepaths(char *map_path)
+GSList *get_filepaths(char *map_path)
 {
        char *line = NULL;
        size_t len = 0;
@@ -260,7 +260,7 @@ void free_rpm(rpmts ts)
        }
 }
 
-charget_rpm_info_as_string_for_pkgname(Header h, const char *pkg_name)
+char *get_rpm_info_as_string_for_pkgname(Header h, const char *pkg_name)
 {
        char *result = NULL;
 
@@ -276,13 +276,13 @@ char* get_rpm_info_as_string_for_pkgname(Header h, const char *pkg_name)
        return result;
 }
 
-charget_rpm_info_as_string(Header h)
+char *get_rpm_info_as_string(Header h)
 {
        const char *name = headerGetString(h, RPMTAG_NAME);
        return get_rpm_info_as_string_for_pkgname(h, name);
 }
 
-charget_rpm_info(rpmts ts, const char* filename)
+char *get_rpm_info(rpmts ts, const char* filename)
 {
        char *rpm_info = NULL;
 
@@ -355,7 +355,7 @@ void search_for_tpk(rpmts ts, GSList *pkgs)
        rpmdbFreeIterator(mi);
 }
 
-charget_app_name_from_path(const char *file_path)
+char *get_app_name_from_path(const char *file_path)
 {
        static const char *prefix[] = {"/usr/apps/",
                                        "/opt/usr/globalapps/"};
index bfea12b..76889e5 100644 (file)
@@ -546,7 +546,7 @@ bool get_exe_path(pid_t pid, char *outbuf, size_t outbuf_len)
  * (argv and envp), which can be arrays of strings as well as NULL
  * pointer.
  */
-charconcatenate(char *const vec[])
+char *concatenate(char *const vec[])
 {
        size_t length = 0;
        for (char *const *p = vec; p && *p; p++)
index ad0bd42..882ce5e 100644 (file)
@@ -64,7 +64,7 @@ typedef bool (*charp0filter)(char *buf, int size, int datalen);
 bool filter_drop_trailing_whitespace(char *buf, int size, int datalen);
 bool read_proc_file(pid_t pid, const char * const file, char *outbuf, size_t bufsize, charp0filter filter);
 
-charconcatenate(char *const vec[]);
+char *concatenate(char *const vec[]);
 
 bool string_ends_with(const char *string, const char *suffix);