- printf("%ld",strlen(...)) gives a warning on SL5

hope that gives no warning on Mac OS X
This commit is contained in:
zolliker
2008-08-29 12:13:34 +00:00
parent adb5fc3436
commit e36e62d881

View File

@ -117,10 +117,10 @@ static void writePolterdiGlobal(NXhandle hfil, NXdict hdict,
NXDputalias(hfil,hdict,"estart",pBueffel); NXDputalias(hfil,hdict,"estart",pBueffel);
SNXSPutVariable(pServ->pSics,pCon,hfil,hdict,"iname","instrument"); SNXSPutVariable(pServ->pSics,pCon,hfil,hdict,"iname","instrument");
sprintf(pBueffel,"%ld",strlen("SINQ, PSI, Switzerland")); sprintf(pBueffel,"%d",(int)strlen("SINQ, PSI, Switzerland"));
NXDupdate(hdict,"strdim",pBueffel); NXDupdate(hdict,"strdim",pBueffel);
NXDputalias(hfil,hdict,"sname","SINQ, PSI, Switzerland"); NXDputalias(hfil,hdict,"sname","SINQ, PSI, Switzerland");
sprintf(pBueffel,"%ld",strlen("continous spallation source")); sprintf(pBueffel,"%d",(int)strlen("continous spallation source"));
NXDupdate(hdict,"strdim",pBueffel); NXDupdate(hdict,"strdim",pBueffel);
NXDputalias(hfil,hdict,"stype","continous spallation source"); NXDputalias(hfil,hdict,"stype","continous spallation source");
NXDupdate(hdict,"strdim","132"); NXDupdate(hdict,"strdim","132");