gmio_stl: fix compilation errors in stla_stats.*

This commit is contained in:
Hugues Delorme 2015-09-25 20:13:43 +02:00
parent bfc38e58b8
commit 0e7e0f9ff9
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ gmio_stla_stats_t gmio_stla_stats_get(
{ {
gmio_stla_stats_t stats = {0}; gmio_stla_stats_t stats = {0};
void* mblock_ptr = trsf != NULL ? trsf->memblock.ptr : NULL; void* mblock_ptr = trsf != NULL ? trsf->memblock.ptr : NULL;
const size_t mblock_size = trsf != NULL ? trsf->memblock.size : NULL; const size_t mblock_size = trsf != NULL ? trsf->memblock.size : 0;
int err = GMIO_ERROR_OK; int err = GMIO_ERROR_OK;
/* Check validity of input transfer object */ /* Check validity of input transfer object */

View File

@ -53,7 +53,7 @@ enum gmio_stla_stat_flag
GMIO_STLA_STAT_FLAG_SIZE = 0x04, GMIO_STLA_STAT_FLAG_SIZE = 0x04,
GMIO_STLA_STAT_FLAG_ALL = 0xFF GMIO_STLA_STAT_FLAG_ALL = 0xFF
}; };
typedef enum gmio_stla_stat gmio_stla_stat_t; typedef enum gmio_stla_stat_flag gmio_stla_stat_flag_t;
GMIO_C_LINKAGE_BEGIN GMIO_C_LINKAGE_BEGIN