From 6afa1943e26bfe80ff5d65d3e98c4d4371aab3fd Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 15 Feb 2007 08:03:03 +1100 Subject: [PATCH] Modified to use multichan r1489 | dcl | 2007-02-15 08:03:03 +1100 (Thu, 15 Feb 2007) | 2 lines --- site_ansto/nhq200driv.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/site_ansto/nhq200driv.c b/site_ansto/nhq200driv.c index 6598ad27..8a7ca37d 100644 --- a/site_ansto/nhq200driv.c +++ b/site_ansto/nhq200driv.c @@ -57,6 +57,8 @@ typedef struct __EVDriver *pEVDriver; #include */ #include +#include +#include #include "hardsup/nhq200util.h" #include "hardsup/el734_def.h" #include "hardsup/el734fix.h" @@ -287,12 +289,13 @@ pEVDriver CreateNHQ200Driver(int argc, char *argv[]) } pNew = CreateEVDriver(argc,argv); - pSim = (pNHQ200Driv)malloc(sizeof(NHQ200Driv)); - memset(pSim,0,sizeof(NHQ200Driv)); - if(!pNew || !pSim) - { + if(!pNew) return NULL; - } + pSim = (pNHQ200Driv)malloc(sizeof(NHQ200Driv)); + if(!pSim) + return NULL; + memset(pSim,0,sizeof(NHQ200Driv)); + pNew->pPrivate = pSim; pNew->KillPrivate = KillNHQ200;