All pastes #637366 Raw Edit

openhpi patch

public text v1 · immutable
#637366 ·published 2007-07-28 20:50 UTC
rendered paste body

--- a/lib/plugins/stonith/bladehpi.c    Fri Jul 27 10:16:24 2007 -0600
+++ b/lib/plugins/stonith/bladehpi.c    Sat Jul 28 14:48:31 2007 -0600
@@ -36,6 +36,8 @@

 #include <openhpi/SaHpi.h>

+#define        MALLOCT_PI(type)        ((type *)(MALLOC(sizeof(type))))
+
 /* Maximum number of seconds to wait for host to power off */
 #define MAX_POWEROFF_WAIT      60

@@ -731,7 +733,7 @@ static StonithPlugin *
 static StonithPlugin *
 bladehpi_new(const char *subplugin)
 {
-       struct pluginDevice *   dev = MALLOCT(struct pluginDevice);
+       struct pluginDevice *   dev = MALLOCT_PI(struct pluginDevice);

        if (Debug) {
                LOG(PIL_DEBUG, "%s: called", __FUNCTION__);