summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-15 22:44:08 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2023-10-15 22:45:33 (GMT)
commit6972242126f1dbfb929dbd1c1582d973d2094d8a (patch)
treec1b1505036fdb00baba0cc17b68f46a085d17be2 /plugins/check_http.c
parent15b4e89a42a3caf2c4da3992d698b356649665a1 (diff)
downloadmonitoring-plugins-6972242126f1dbfb929dbd1c1582d973d2094d8a.tar.gz
Fixes for compiler warning -Wparenthesesrefs/pull/1939/head
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 718c8ee..b9d8145 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1094,7 +1094,7 @@ check_http (void)
1094 microsec_firstbyte = deltime (tv_temp); 1094 microsec_firstbyte = deltime (tv_temp);
1095 elapsed_time_firstbyte = (double)microsec_firstbyte / 1.0e6; 1095 elapsed_time_firstbyte = (double)microsec_firstbyte / 1.0e6;
1096 } 1096 }
1097 while (pos = memchr(buffer, '\0', i)) { 1097 while ((pos = memchr(buffer, '\0', i))) {
1098 /* replace nul character with a blank */ 1098 /* replace nul character with a blank */
1099 *pos = ' '; 1099 *pos = ' ';
1100 } 1100 }