diff options
Diffstat (limited to 'recipes-extended/openhpi-subagent/files/remove_unused_but_set_variable.patch')
-rw-r--r-- | recipes-extended/openhpi-subagent/files/remove_unused_but_set_variable.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-extended/openhpi-subagent/files/remove_unused_but_set_variable.patch b/recipes-extended/openhpi-subagent/files/remove_unused_but_set_variable.patch new file mode 100644 index 0000000..b2c89b4 --- /dev/null +++ b/recipes-extended/openhpi-subagent/files/remove_unused_but_set_variable.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | Index: openhpi-subagent-2.3.4/src/hpiSubagent.c | ||
2 | =================================================================== | ||
3 | --- openhpi-subagent-2.3.4.orig/src/hpiSubagent.c | ||
4 | +++ openhpi-subagent-2.3.4/src/hpiSubagent.c | ||
5 | @@ -219,7 +219,6 @@ main (int argc, char **argv) | ||
6 | SaHpiVersionT hpiVer; | ||
7 | SaHpiSessionIdT sessionid; | ||
8 | SaHpiDomainInfoT domain_info; | ||
9 | - SaHpiBoolT run_threaded = TRUE; | ||
10 | |||
11 | pid_t child; | ||
12 | |||
13 | @@ -479,7 +478,6 @@ main (int argc, char **argv) | ||
14 | env = getenv("OPENHPI_THREADED"); | ||
15 | if ((env == (char *)NULL) || (strcmp(env, "NO") == 0)) { | ||
16 | DEBUGMSGTL ((AGENT, "Running in nonthreaded mode. Configuring polling mechanism\n")); | ||
17 | - run_threaded = SAHPI_FALSE; | ||
18 | set_run_threaded(FALSE); | ||
19 | if (init_alarm() != AGENT_ERR_NOERROR) { | ||
20 | snmp_log (LOG_ERR, "Could not initialize polling mechanism. Exiting\n."); | ||