fixed small bugs/unproper code

This commit is contained in:
zolliker
2005-03-04 09:43:18 +00:00
parent 0a30ff82c3
commit b6f7d27147
10 changed files with 44 additions and 135 deletions

View File

@@ -93,7 +93,7 @@ static int SaveMesure(void *pData, char *name, FILE *fd)
fprintf(fd,"%s np %d\n", name, self->np);
fprintf(fd,"%s preset %f\n", name, self->fPreset);
fprintf(fd,"%s step %f\n", name, self->fStep);
fprintf(fd,"%s weakthreshold %f\n", name, self->weakThreshold);
fprintf(fd,"%s weakthreshold %ld\n", name, self->weakThreshold);
fprintf(fd,"%s compact %d\n", name, self->iCompact);
fprintf(fd,"%s weak %d\n", name, self->weak);
fprintf(fd,"%s fastscan %d\n", name, self->fastScan);
@@ -122,7 +122,7 @@ static void ListMesure(pMesure self, char *name, SConnection *pCon)
Tcl_DStringAppend(&list,pBuffer,-1);
snprintf(pBuffer,131,"%s.step %f\n", name, self->fStep);
Tcl_DStringAppend(&list,pBuffer,-1);
snprintf(pBuffer,131,"%s.weakthreshold %f\n", name, self->weakThreshold);
snprintf(pBuffer,131,"%s.weakthreshold %ld\n", name, self->weakThreshold);
Tcl_DStringAppend(&list,pBuffer,-1);
snprintf(pBuffer,131,"%s.compact %d\n", name, self->iCompact);
Tcl_DStringAppend(&list,pBuffer,-1);