git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7907
91ce42f0-d328-0410-95d8-
f526ca767f89
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;
}
}
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;
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));
}