Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Convert auto_update to bool and use it correctly in rquery
Baptiste Daroussin committed 10 years ago
commit 26f5a05056a8d0322d14a929ed86ccfebab1ef1a
parent 25ba61b
3 files changed +2 -3
modified src/globals.c
@@ -26,7 +26,7 @@
int default_yes; /* Default always yes */
int yes; /* Assume always yes */
int dry_run; /* Do not perform any actions */
-
int auto_update; /* Do not update repo */
+
bool auto_update; /* Do not update repo */
int case_sensitive; /* Case sensitive queries */
int force; /* Forced operation */
int quiet; /* Silent output */
modified src/pkgcli.h
@@ -299,7 +299,7 @@ int analyse_query_string(char *qstr, struct query_flags *q_flags,
extern int default_yes;
extern int yes;
extern int dry_run;
-
extern int auto_update;
+
extern bool auto_update;
extern int case_sensitive;
extern int force;
extern bool quiet;
modified src/rquery.c
@@ -120,7 +120,6 @@ exec_rquery(int argc, char **argv)
	struct sbuf		*sqlcond = NULL;
	const unsigned int	 q_flags_len = NELEM(accepted_rquery_flags);
	const char		*reponame = NULL;
-
	bool			 auto_update;
	bool			 onematched = false;
	bool			 old_quiet;
	bool			 index_output = false;