diff --git a/el737hpdriv.c b/el737hpdriv.c index e7cfe61..b0da275 100644 --- a/el737hpdriv.c +++ b/el737hpdriv.c @@ -193,7 +193,7 @@ static int decodeRS(pEL737hp pPriv, int RS){ /*-----------------------------------------------------------------*/ static int updateMonitors(struct __COUNTER *self){ int status; - int m1,m2,m3,m4,m5,m6,m7,m8; + long m1,m2,m3,m4,m5,m6,m7,m8; float fTime; pEL737hp pPriv = NULL; char reply[132]; @@ -207,13 +207,13 @@ static int updateMonitors(struct __COUNTER *self){ /* There are two forms of RA replys: new form with 8 monitors */ - status = sscanf(reply,"%f %d %d %d %d %d %d %d %d", + status = sscanf(reply,"%f %ld %ld %ld %ld %ld %ld %ld %ld", &fTime,&m1,&m2,&m3,&m4,&m5,&m6,&m7,&m8); if(status != 9){ /* old form with 4 monitors */ - status = sscanf(reply,"%d %d %d %d %f",&m1,&m2,&m3,&m4,&fTime); + status = sscanf(reply,"%ld %ld %ld %ld %f",&m1,&m2,&m3,&m4,&fTime); if(status != 5){ pPriv->errorCode = BADREPLY; setBadReply(pPriv,reply); diff --git a/polterwrite.c b/polterwrite.c index f2ae394..9df533c 100644 --- a/polterwrite.c +++ b/polterwrite.c @@ -223,7 +223,7 @@ static void PoldiStart(pPolterdi self, SConnection *pCon) return; } /* create a Nexus file */ - NXopen(self->pFile,NXACC_CREATE,&hfil); + NXopen(self->pFile,NXACC_CREATE5,&hfil); if(!hfil) { SCWrite(pCon,"ERROR: cannot create data file ",eError);