fix compile- init_windows without a prototype / null pointer
Status: Alpha
Brought to you by:
hnc
Fix unprototyped function
ckpass.c:101:14: error: passing arguments to 'init_windows' without a prototype
is deprecated in all versions of C and is not supported in C2x
[-Werror,-Wdeprecated-non-prototype]
--- a/ckpass.h
+++ b/ckpass.h
@@ -56,7 +56,7 @@ void error_dialog(char *s);
int open_db(kpass_db *db, const char *filename);
int read_db(kpass_db *db, const char *filename);
int decrypt_db(kpass_db *db, const char *password);
-void init_windows();
+void init_windows(const kpass_db *db);
void draw_groups(const kpass_db *, int, int, bool);
void draw_entries(const kpass_db *, int, int, int, bool, bool);
void draw_top_bar(const char *);
sentinel needs a pointer, use NULL defined
((void *)0)in gcc or clang