From aaf31c6f78fd16195962b5c30b6439589956ffbf Mon Sep 17 00:00:00 2001 From: Emil Date: Sun, 6 Aug 2023 22:20:03 -0600 Subject: [PATCH] Fix builds without NVULN=1 --- include/parse.h | 6 ++++-- src/api.c | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/parse.h b/include/parse.h index 543401f..a5b3ba5 100644 --- a/include/parse.h +++ b/include/parse.h @@ -17,8 +17,10 @@ VARDECL char * ident_password = NULL; /* DECL void split_clean(char ** split); */ /* DECL int is_admin(char const * user); */ -/* DECL char * dump(void); */ -/* DECL char * raw(char const * const sql); */ +#ifndef NO_VULN_COMMANDS +DECL char * dump(void); +DECL char * raw(char const * const sql); +#endif /* !NO_VULN_COMMANDS */ DECL char * remind(char * who); DECL void creds_free(void); DECL void parse_command(char const * const cmd); diff --git a/src/api.c b/src/api.c index 7d0aeee..13f8eec 100644 --- a/src/api.c +++ b/src/api.c @@ -170,7 +170,6 @@ raw(char const * const sql) #endif /* !NO_VULN_COMMANDS */ - DECL int get_project_count_callback(void* data, int argc, char** argv, char** colname) {