Skip to content

Commit

Permalink
Fix several compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
philipianpearce committed Apr 3, 2024
1 parent c6144a6 commit 133db34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/ICAPHeader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,10 @@ bool ICAPHeader::in(Socket *sock, bool allowpersistent)
if (is_response) {
if (!(line.length() > 11 && line.startsWith("ICAP/") &&
(line.after(" ").before(" ").toInteger() > 99))) {
if (o.conn.logconerror)
if (o.conn.logconerror) {
E2LOGGER_error("Server did not respond with ICAP");
DEBUG_icap("Returning from header:in Server did not respond with ICAP length: ", line.length(), " content: ", line );
}
DEBUG_icap("Returning from header:in Server did not respond with ICAP length: ", line.length(), " content: ", line );
return false;
}
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/ListContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ bool ListContainer::findEndsWith(const char *string, String &lastcategory, Strin
if (r >= 0) {
lastcategory = category;
match = (data + list[r]);
return (data + list[r]);
return true;
}
}
bool rc;
Expand All @@ -833,7 +833,7 @@ bool ListContainer::findEndsWith(const char *string, String &lastcategory, Strin
}
}
}
return NULL;
return false;
}

// For phrase lists - grab the text, score and type of a given phrase, based on item number within list
Expand Down

0 comments on commit 133db34

Please sign in to comment.