Adjust coding rule 79/67479/2
authorMyungki Lee <mk5004.lee@samsung.com>
Wed, 27 Apr 2016 02:21:49 +0000 (11:21 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Wed, 27 Apr 2016 02:21:49 +0000 (11:21 +0900)
Change-Id: I9667c57e57b1d1adbc50141c1764079147ac6ca6
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
include/badge_db.h
include/badge_internal.h
src/badge_db.c
src/badge_internal.c

index e58a2d8..2e2a4ba 100755 (executable)
@@ -38,7 +38,7 @@ int badge_db_set_count(const char *pkgname, const char *caller_pkg, unsigned int
 int badge_db_get_count(const char *pkgname, unsigned int *count);
 int badge_db_set_display_option(const char *pkgname, const char *caller_pkg, unsigned int is_display);
 int badge_db_get_display_option(const char *pkgname, unsigned int *is_display);
-int badge_db_exec(sqlite3 * db, const char *query, int *num_changes);
+int badge_db_exec(sqlite3 *db, const char *query, int *num_changes);
 
 #ifdef __cplusplus
        }
index 44dfe52..d0d24a0 100755 (executable)
@@ -38,7 +38,7 @@
 #define DEPRECATED __attribute__((deprecated))
 #endif
 
-#define BADGE_ERROR (badge_error_quark ())
+#define BADGE_ERROR (badge_error_quark())
 GQuark badge_error_quark(void);
 
 #ifdef __cplusplus
index be21135..2cfd347 100755 (executable)
@@ -37,7 +37,7 @@ int badge_db_insert(const char *pkgname, const char *writable_pkg, const char *c
        char *pkgs = NULL;
 
        if (!pkgname) {
-               WARN("package name is NULL");
+               ERR("package name is NULL");
                return BADGE_ERROR_INVALID_PARAMETER;
        }
 
@@ -120,7 +120,7 @@ int badge_db_get_display_option(const char *pkgname, unsigned int *is_display)
 }
 
 EXPORT_API
-int badge_db_exec(sqlite3 * db, const char *query, int *num_changes)
+int badge_db_exec(sqlite3 *db, const char *query, int *num_changes)
 {
        int ret = 0;
        sqlite3_stmt *stmt = NULL;
index a013847..10c6549 100755 (executable)
@@ -112,8 +112,9 @@ char *_badge_get_pkgname_by_pid(void)
        if (pkgname[0] == '\0') {
                free(pkgname);
                return NULL;
-       } else
+       } else {
                return pkgname;
+       }
 }
 
 static int _badge_check_data_inserted(const char *pkgname,