diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-13 11:34:49 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-13 11:37:46 +0200 |
commit | dcf1149af6f8a0c71271a44b9aa1b06a5b4b45c5 (patch) | |
tree | 52d28b110c66c601bc23dda09f1aa6cc53d820de /src/sqlite | |
parent | command: refactoring (diff) | |
download | cimple-dcf1149af6f8a0c71271a44b9aa1b06a5b4b45c5.tar.gz cimple-dcf1149af6f8a0c71271a44b9aa1b06a5b4b45c5.zip |
use -std=c17 -Wpedantic
Diffstat (limited to '')
-rw-r--r-- | src/sqlite.c | 4 | ||||
-rw-r--r-- | src/sqlite.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sqlite.c b/src/sqlite.c index 9134528..344e98a 100644 --- a/src/sqlite.c +++ b/src/sqlite.c @@ -28,7 +28,7 @@ sqlite_errno(CONCAT(ret, __LINE__), fn); \ } while (0) -int sqlite_init() +int sqlite_init(void) { int ret = 0; @@ -41,7 +41,7 @@ int sqlite_init() return ret; } -void sqlite_destroy() +void sqlite_destroy(void) { sqlite_errno_if(sqlite3_shutdown(), "sqlite3_shutdown"); } diff --git a/src/sqlite.h b/src/sqlite.h index bb46288..5a6a548 100644 --- a/src/sqlite.h +++ b/src/sqlite.h @@ -10,8 +10,8 @@ #include <sqlite3.h> -int sqlite_init(); -void sqlite_destroy(); +int sqlite_init(void); +void sqlite_destroy(void); int sqlite_open(const char *path, sqlite3 **db, int flags); int sqlite_open_rw(const char *path, sqlite3 **db); |