From 8835f26fd19df78f435c20d4374d28036877048a Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 26 Oct 2008 15:12:21 +0000 Subject: [PATCH] Eliminate pesky compiler warnings git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7907 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_status.c | 2 +- bacula/src/stored/status.c | 2 +- bacula/src/tools/dbcheck.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/dird/ua_status.c b/bacula/src/dird/ua_status.c index 473853b3b4..bb49e4e2a2 100644 --- a/bacula/src/dird/ua_status.c +++ b/bacula/src/dird/ua_status.c @@ -527,7 +527,7 @@ static void list_scheduled_jobs(UAContext *ua) i = find_arg_with_value(ua, NT_("days")); if (i >= 0) { days = atoi(ua->argv[i]); - if ((days < 0) || (days > 500) && !ua->api) { + if (((days < 0) || (days > 500)) && !ua->api) { ua->send_msg(_("Ignoring invalid value for days. Max is 500.\n")); days = 1; } diff --git a/bacula/src/stored/status.c b/bacula/src/stored/status.c index a665e250d0..208a042c25 100644 --- a/bacula/src/stored/status.c +++ b/bacula/src/stored/status.c @@ -405,7 +405,7 @@ static void list_running_jobs(STATUS_PKT *sp) } dcr = jcr->dcr; rdcr = jcr->read_dcr; - if ((dcr && dcr->device) || rdcr && rdcr->device) { + if ((dcr && dcr->device) || (rdcr && rdcr->device)) { bstrncpy(JobName, jcr->Job, sizeof(JobName)); /* There are three periods after the Job name */ char *p; diff --git a/bacula/src/tools/dbcheck.c b/bacula/src/tools/dbcheck.c index 45072dda56..07f4d8c4e4 100644 --- a/bacula/src/tools/dbcheck.c +++ b/bacula/src/tools/dbcheck.c @@ -1343,7 +1343,7 @@ static bool check_idx(const char *col_name) int found = false; memset(&idx_list, 0, sizeof(idx_list)); - char *query = "SHOW INDEX FROM File"; + connst char *query = "SHOW INDEX FROM File"; if (!db_sql_query(db, query, check_idx_handler, (void *)col_name)) { printf("%s\n", db_strerror(db)); } -- 2.39.5