build/sim/core/modules: fix compilation warnings
This commit is contained in:
parent
68d3804cdb
commit
3610b066c2
|
@ -10,7 +10,7 @@ struct session_s {
|
||||||
|
|
||||||
static int litex_sim_module_pads_get( struct pad_s *pads, char *name, void **signal)
|
static int litex_sim_module_pads_get( struct pad_s *pads, char *name, void **signal)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = RC_OK;
|
||||||
void *sig=NULL;
|
void *sig=NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ out:
|
||||||
|
|
||||||
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
|
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = RC_OK;
|
||||||
void *sig = NULL;
|
void *sig = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ struct session_s {
|
||||||
struct event_base *base;
|
struct event_base *base;
|
||||||
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
|
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = RC_OK;
|
||||||
void *sig = NULL;
|
void *sig = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ out:
|
||||||
|
|
||||||
static int litex_sim_module_pads_get( struct pad_s *pads, char *name, void **signal)
|
static int litex_sim_module_pads_get( struct pad_s *pads, char *name, void **signal)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = RC_OK;
|
||||||
void *sig = NULL;
|
void *sig = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -403,7 +403,7 @@ static void spdeeprom_from_file(struct session_s *s, FILE *file)
|
||||||
|
|
||||||
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
|
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = RC_OK;
|
||||||
void *sig=NULL;
|
void *sig=NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ out:
|
||||||
|
|
||||||
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
|
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = RC_OK;
|
||||||
void *sig = NULL;
|
void *sig = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -358,7 +358,6 @@ static int xgmii_ethernet_tick(void *sess)
|
||||||
printf("Received: %ld\n", s->ethpack->len );
|
printf("Received: %ld\n", s->ethpack->len );
|
||||||
for(int i=0; i< s->ethpack->len;) {
|
for(int i=0; i< s->ethpack->len;) {
|
||||||
printf("%02x ", s->inbuf[i++] & 0xff);
|
printf("%02x ", s->inbuf[i++] & 0xff);
|
||||||
if (i%8 == 0 && i > 0);
|
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
s->inlen = s->ethpack->len;
|
s->inlen = s->ethpack->len;
|
||||||
|
|
Loading…
Reference in New Issue