Merge pull request #568 from sergachev/master
build/sim/core/modules: fix compilation warnings
This commit is contained in:
commit
c3ed802526
|
@ -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;
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ static int clocker_start()
|
||||||
|
|
||||||
static int clocker_new(void **sess, char *args)
|
static int clocker_new(void **sess, char *args)
|
||||||
{
|
{
|
||||||
int ret=RC_OK;
|
int ret = RC_OK;
|
||||||
|
|
||||||
struct session_s *s=NULL;
|
struct session_s *s=NULL;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ out:
|
||||||
|
|
||||||
static int ethernet_add_pads(void *sess, struct pad_list_s *plist)
|
static int ethernet_add_pads(void *sess, struct pad_list_s *plist)
|
||||||
{
|
{
|
||||||
int ret=RC_OK;
|
int ret = RC_OK;
|
||||||
struct session_s *s = (struct session_s*)sess;
|
struct session_s *s = (struct session_s*)sess;
|
||||||
struct pad_s *pads;
|
struct pad_s *pads;
|
||||||
if(!sess || !plist) {
|
if(!sess || !plist) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ static void event_handler(int fd, short event, void *arg)
|
||||||
|
|
||||||
static int serial2console_new(void **sess, char *args)
|
static int serial2console_new(void **sess, char *args)
|
||||||
{
|
{
|
||||||
int ret=RC_OK;
|
int ret = RC_OK;
|
||||||
struct timeval tv = {1, 0};
|
struct timeval tv = {1, 0};
|
||||||
struct session_s *s = NULL;
|
struct session_s *s = NULL;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ out:
|
||||||
|
|
||||||
static int serial2tcp_add_pads(void *sess, struct pad_list_s *plist)
|
static int serial2tcp_add_pads(void *sess, struct pad_list_s *plist)
|
||||||
{
|
{
|
||||||
int ret=RC_OK;
|
int ret = RC_OK;
|
||||||
struct session_s *s=(struct session_s*)sess;
|
struct session_s *s=(struct session_s*)sess;
|
||||||
struct pad_s *pads;
|
struct pad_s *pads;
|
||||||
if(!sess || !plist) {
|
if(!sess || !plist) {
|
||||||
|
|
|
@ -99,7 +99,7 @@ static int spdeeprom_start()
|
||||||
|
|
||||||
static int spdeeprom_new(void **sess, char *args)
|
static int spdeeprom_new(void **sess, char *args)
|
||||||
{
|
{
|
||||||
int ret=RC_OK;
|
int ret = RC_OK;
|
||||||
int i;
|
int i;
|
||||||
char *spd_filename;
|
char *spd_filename;
|
||||||
FILE *spd_file;
|
FILE *spd_file;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -199,7 +199,7 @@ out:
|
||||||
|
|
||||||
static int xgmii_ethernet_add_pads(void *sess, struct pad_list_s *plist)
|
static int xgmii_ethernet_add_pads(void *sess, struct pad_list_s *plist)
|
||||||
{
|
{
|
||||||
int ret=RC_OK;
|
int ret = RC_OK;
|
||||||
struct session_s *s = (struct session_s*)sess;
|
struct session_s *s = (struct session_s*)sess;
|
||||||
struct pad_s *pads;
|
struct pad_s *pads;
|
||||||
if(!sess || !plist) {
|
if(!sess || !plist) {
|
||||||
|
@ -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