Fix FreeBSD 10.1 build

This commit is contained in:
Ulrich Wilkens
2014-11-20 02:11:47 +01:00
committed by Jon Trulson
parent bf0666a330
commit 29294e0373
18 changed files with 18 additions and 22 deletions

View File

@@ -116,7 +116,7 @@ DtSR_BookcaseSearchEntry::~DtSR_BookcaseSearchEntry()
void
DtSR_BookcaseSearchEntry::search_zones(UAS_SearchZones& search_zones)
{
if (! bcases().length() > 0) {
if (! (bcases().length() > 0)) {
#ifdef DEBUG
fprintf(stderr, "search_zones tried on empty BookcaseEntry list\n");
#endif

View File

@@ -50,7 +50,7 @@ StringParser::brute_force(const char* text_in, int n_of_pats,
else if (patterns == NULL || *patterns == '\0')
return NULL;
if (! n_of_pats > 0)
if (! (n_of_pats > 0))
return NULL;
char** pat_tbl = new char*[n_of_pats + 1];