ports/sysutils/openipmi/files/patch-lib-sensor.c
Li-Wen Hsu 1b47901e79 - Add a patch to support sensors for Sun Fire x64 systems
PR:		ports/147287
Submitted by:	Alex Deiter <alex.deiter AT gmail.com> (maintainer)
Obtained from:	OpenIPMI CVS Repositories
2010-08-04 10:22:56 +00:00

11 lines
377 B
C

--- lib/sensor.c.orig 2010-05-28 18:51:20.949496519 +0400
+++ lib/sensor.c 2010-05-28 18:51:37.079705617 +0400
@@ -1438,7 +1438,7 @@
s[p]->id_type = IPMI_ASCII_STR;
}
- if (share_count) {
+ if (share_count > 1) {
/* Duplicate the sensor records for each instance. Go
backwards to avoid destroying the first one until we
finish the others. */