===================================================================
Gbp-Pq: Name fix-storing-local-variables
static unsigned short httpd_port = 9104;
static struct MHD_Daemon *httpd;
+static int mhd_cls = 44;
+
static dmi_type_name_t types_list[] = {
{BIOS, "BIOS"},
{SYSTEM, "SYSTEM"},
* round. The docs are not very specific on the issue. */
if (*connection_state == NULL) {
/* set to a random non-NULL pointer. */
- *connection_state = &(int){44};
+ *connection_state = &mhd_cls;
return MHD_YES;
}
DEBUG(CAP_PLUGIN ": formatted response: %s", g_cap_json);
static char *httpd_host = NULL;
static unsigned short httpd_port = 9103;
static struct MHD_Daemon *httpd;
+static int mhd_cls = 42;
static cdtime_t staleness_delta = PROMETHEUS_DEFAULT_STALENESS_DELTA;
* very specific on the issue. */
if (*connection_state == NULL) {
/* set to a random non-NULL pointer. */
- *connection_state = &(int){42};
+ *connection_state = &mhd_cls;
return MHD_YES;
}