Convert a few main() functions to a form that the clang compiler likes.
This commit is contained in:
parent
03f64ac97a
commit
630f566d3f
3 changed files with 5 additions and 8 deletions
|
@ -83,7 +83,7 @@ EXTERN _PROTOTYPE( int sef_cb_lu_state_isvalid, (int state) );
|
|||
EXTERN _PROTOTYPE( void sef_cb_lu_state_dump, (int state) );
|
||||
PUBLIC int is_status_msg_expected = FALSE;
|
||||
|
||||
PUBLIC void main(void)
|
||||
PUBLIC int main(int argc, char *argv[])
|
||||
{
|
||||
int r, caller;
|
||||
message mess, repl_mess;
|
||||
|
@ -174,6 +174,7 @@ PUBLIC void main(void)
|
|||
|
||||
/* Should not be here. Just continue. */
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*===========================================================================*
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
#define error printf
|
||||
|
||||
|
||||
|
||||
_PROTOTYPE( void main, (void) );
|
||||
|
||||
_PROTOTYPE( int drv_init, (void) );
|
||||
_PROTOTYPE( int drv_init_hw, (void) );
|
||||
_PROTOTYPE( int drv_reset, (void) );
|
||||
|
|
|
@ -80,8 +80,6 @@ extern int inet_buf_debug;
|
|||
u32_t system_hz;
|
||||
#endif
|
||||
|
||||
_PROTOTYPE( void main, (void) );
|
||||
|
||||
FORWARD _PROTOTYPE( void nw_conf, (void) );
|
||||
FORWARD _PROTOTYPE( void nw_init, (void) );
|
||||
FORWARD _PROTOTYPE( void ds_event, (void) );
|
||||
|
@ -90,7 +88,7 @@ FORWARD _PROTOTYPE( void ds_event, (void) );
|
|||
FORWARD _PROTOTYPE( void sef_local_startup, (void) );
|
||||
FORWARD _PROTOTYPE( int sef_cb_init_fresh, (int type, sef_init_info_t *info) );
|
||||
|
||||
PUBLIC void main()
|
||||
PUBLIC int main(int argc, char *argv[])
|
||||
{
|
||||
mq_t *mq;
|
||||
int ipc_status;
|
||||
|
@ -182,6 +180,7 @@ PUBLIC void main()
|
|||
}
|
||||
}
|
||||
ip_panic(("task is not allowed to terminate"));
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*===========================================================================*
|
||||
|
|
Loading…
Reference in a new issue