fixed some bugs/unproper code

This commit is contained in:
zolliker
2005-03-04 09:44:12 +00:00
parent fc12b6b1c1
commit c706d655c8
5 changed files with 45 additions and 18 deletions

View File

@ -182,7 +182,7 @@ static void writeSample(NXhandle hfil, NXdict hdict,
/*--------------------------------------------------------------------*/
static int PoldiStart(pPolterdi self, SConnection *pCon)
static void PoldiStart(pPolterdi self, SConnection *pCon)
{
char pBueffel[256];
NXhandle hfil = NULL;
@ -206,14 +206,14 @@ static int PoldiStart(pPolterdi self, SConnection *pCon)
{
SCWrite(pCon,"ERROR: Extra severe: failed to create data file name",
eError);
return 0;
return;
}
/* create a Nexus file */
NXopen(self->pFile,NXACC_CREATE,&hfil);
if(!hfil)
{
SCWrite(pCon,"ERROR: cannot create data file ",eError);
return 0;
return;
}
/* tell Uwe User what we are doing */
pVar = NULL;
@ -245,7 +245,7 @@ static int PoldiStart(pPolterdi self, SConnection *pCon)
SCWrite(pCon,"ERROR: This is a SERIOUS problem!",eError);
SCWrite(pCon,"ERROR: DATA NOT WRITTEN",eError);
NXclose(&hfil);
return 0;
return;
}