blob: 2feca4986ed1bceb0f4b864a718bab2afd395ac4 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 660fce9cfa00a57e5b7cec46116a31e21595c306 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 19 Jun 2017 23:47:01 -0700
4Subject: [PATCH] squid: Upgrade to 3.5.26
5
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006../../squid-3.5.26/src/DiskIO/DiskThreads/aiops.cc: In function 'void squidaio_init()': ../../squid-3.5.26/src/DiskIO/DiskThreads/DiskThreads.h:30:50: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context] #define NUMTHREADS (Config.cacheSwap.n_configured*16)
7
Brad Bishopd7bf8c12018-02-25 22:55:05 -05008Upstream-Status: Backport
Brad Bishop316dfdd2018-06-25 12:45:53 -04009
10---
11 src/DiskIO/DiskThreads/aiops.cc | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/src/DiskIO/DiskThreads/aiops.cc b/src/DiskIO/DiskThreads/aiops.cc
15index b44adfa..e11f948 100644
16--- a/src/DiskIO/DiskThreads/aiops.cc
17+++ b/src/DiskIO/DiskThreads/aiops.cc
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018@@ -290,7 +290,7 @@ squidaio_init(void)
19 /* Create threads and get them to sit in their wait loop */
20 squidaio_thread_pool = memPoolCreate("aio_thread", sizeof(squidaio_thread_t));
21
22- assert(NUMTHREADS);
23+ assert(NUMTHREADS != 0);
24
25 for (i = 0; i < NUMTHREADS; ++i) {
26 threadp = (squidaio_thread_t *)squidaio_thread_pool->alloc();