Add a void parameter 41/214741/2
authormk5004.lee <mk5004.lee@samsung.com>
Thu, 26 Sep 2019 04:41:57 +0000 (13:41 +0900)
committerMyungKi Lee <mk5004.lee@samsung.com>
Wed, 2 Oct 2019 06:09:21 +0000 (06:09 +0000)
 - notification_db_open
   notification_db_init

Change-Id: Ifaf708b9ae1578084dde4a717b1f9952ec4b3af4
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
notification/include/notification_db.h
notification/src/notification_setting_service.c

index 219e507..2a6ad9f 100644 (file)
 #define NOTIFICATION_EMPTY_STR ""
 #define NOTIFICATION_CHECK_STR(p) ((p) ? (p) : NOTIFICATION_EMPTY_STR)
 
-sqlite3 *notification_db_open();
+sqlite3 *notification_db_open(void);
 int notification_db_close(sqlite3 **db);
 int notification_db_exec(sqlite3 *db, const char *query, int *num_changes);
 char *notification_db_column_text(sqlite3_stmt *stmt, int col);
 bundle *notification_db_column_bundle(sqlite3_stmt *stmt, int col);
-int notification_db_init();
+int notification_db_init(void);
 
 #endif /* __NOTIFICATION_DB_H__ */
 
index 7faee55..656b919 100644 (file)
@@ -900,7 +900,7 @@ int notification_setting_db_update_pkg_disabled(const char *pkg_id, bool value,
        if (pkg_id == NULL)
                return NOTIFICATION_ERROR_INVALID_PARAMETER;
 
-       db = notification_db_open(DBPATH);
+       db = notification_db_open();
        if (!db)
                return get_last_result();