Commit 49fd0715 authored by Adam Wujek's avatar Adam Wujek 💬

userspace/snmpd: bugfix, remove HAL_MAX_PORTS from snmpd

Arrays uses WRS_N_PORTS as maximum number of ports.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 791a66e4
......@@ -210,7 +210,7 @@ void init_shm(void)
if (hal_nports_local > WRS_N_PORTS) {
snmp_log(LOG_ERR, "Too many ports reported by HAL. "
"%d vs %d supported\n",
hal_nports_local, HAL_MAX_PORTS);
hal_nports_local, WRS_N_PORTS);
exit(-1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment