From f6da9800158d8dc3e2d5044cf25fd8854bda3860 Mon Sep 17 00:00:00 2001 From: Ubuntu Developers Date: Mon, 27 Jun 2022 15:01:27 +0800 Subject: [PATCH] mysql8-replace-bool apps/snmptrapd_sql: Fix build against MySQL 8 See also https://sourceforge.net/p/net-snmp/bugs/2922/. [bvanassche: changed 'int' into 'char'] Description: apps/snmptrapd_sql: Fix build against MySQL 8 Author: Andreas Hasenack Origin: upstream, https://github.com/net-snmp/net-snmp/commit/9f4af8c42d Bug: https://sourceforge.net/p/net-snmp/bugs/2922/ Bug-Ubuntu: https://bugs.launchpad.net/bugs/1814270 Applied-Upstream: v5.8.rc4-180-g9f4af8c42 (drop after v5.8.1.pre1) Reviewed-by: Rafael David Tinoco Last-Update: 2019-12-16 Gbp-Pq: Name mysql8-replace-bool.patch --- apps/snmptrapd_sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/snmptrapd_sql.c b/apps/snmptrapd_sql.c index 6126ca9..32a3b17 100644 --- a/apps/snmptrapd_sql.c +++ b/apps/snmptrapd_sql.c @@ -199,7 +199,7 @@ typedef struct sql_buf_t { * static bind structures, plus 2 static buffers to bind to. */ static MYSQL_BIND _tbind[TBIND_MAX], _vbind[VBIND_MAX]; -static my_bool _no_v3; +static char _no_v3; static void _sql_process_queue(u_int dontcare, void *meeither);