summaryrefslogtreecommitdiffstats
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/amap/amapLiberty.c3
-rw-r--r--src/map/amap/amapRead.c3
-rw-r--r--src/map/mio/mioRead.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/map/amap/amapLiberty.c b/src/map/amap/amapLiberty.c
index 9a213d2a..c31bc141 100644
--- a/src/map/amap/amapLiberty.c
+++ b/src/map/amap/amapLiberty.c
@@ -826,6 +826,7 @@ Amap_Tree_t * Amap_LibertyStart( char * pFileName )
{
FILE * pFile;
Amap_Tree_t * p;
+ int RetValue;
// start the manager
p = ABC_ALLOC( Amap_Tree_t, 1 );
memset( p, 0, sizeof(Amap_Tree_t) );
@@ -839,7 +840,7 @@ Amap_Tree_t * Amap_LibertyStart( char * pFileName )
}
pFile = fopen( pFileName, "rb" );
p->pContents = ABC_ALLOC( char, p->nContents+1 );
- fread( p->pContents, p->nContents, 1, pFile );
+ RetValue = fread( p->pContents, p->nContents, 1, pFile );
fclose( pFile );
p->pContents[p->nContents] = 0;
// other
diff --git a/src/map/amap/amapRead.c b/src/map/amap/amapRead.c
index 5776c3ff..1031ee84 100644
--- a/src/map/amap/amapRead.c
+++ b/src/map/amap/amapRead.c
@@ -76,6 +76,7 @@ char * Amap_LoadFile( char * pFileName )
FILE * pFile;
char * pBuffer;
int nFileSize;
+ int RetValue;
// open the BLIF file for binary reading
pFile = Io_FileOpen( pFileName, "open_path", "rb", 1 );
// pFile = fopen( FileName, "rb" );
@@ -94,7 +95,7 @@ char * Amap_LoadFile( char * pFileName )
rewind( pFile );
// load the contents of the file into memory
pBuffer = ABC_ALLOC( char, nFileSize + 10 );
- fread( pBuffer, nFileSize, 1, pFile );
+ RetValue = fread( pBuffer, nFileSize, 1, pFile );
// terminate the string with '\0'
pBuffer[ nFileSize ] = '\0';
strcat( pBuffer, "\n.end\n" );
diff --git a/src/map/mio/mioRead.c b/src/map/mio/mioRead.c
index ccbc0ac6..283e2acf 100644
--- a/src/map/mio/mioRead.c
+++ b/src/map/mio/mioRead.c
@@ -114,6 +114,7 @@ Mio_Library_t * Mio_LibraryReadOne( char * FileName, int fExtendedFormat, st_tab
{
FILE * pFile;
int nFileSize;
+ int RetValue;
// open the BLIF file for binary reading
pFile = Io_FileOpen( FileName, "open_path", "rb", 1 );
@@ -128,7 +129,7 @@ Mio_Library_t * Mio_LibraryReadOne( char * FileName, int fExtendedFormat, st_tab
rewind( pFile );
// load the contents of the file into memory
pBuffer = ABC_ALLOC( char, nFileSize + 10 );
- fread( pBuffer, nFileSize, 1, pFile );
+ RetValue = fread( pBuffer, nFileSize, 1, pFile );
// terminate the string with '\0'
pBuffer[ nFileSize ] = '\0';
strcat( pBuffer, "\n.end\n" );