Convert a few main() functions to a form that the clang compiler likes.

This commit is contained in:
Kees van Reeuwijk 2010-07-01 22:23:25 +00:00
parent 03f64ac97a
commit 630f566d3f
3 changed files with 5 additions and 8 deletions

View file

@ -83,8 +83,8 @@ EXTERN _PROTOTYPE( int sef_cb_lu_state_isvalid, (int state) );
EXTERN _PROTOTYPE( void sef_cb_lu_state_dump, (int state) ); EXTERN _PROTOTYPE( void sef_cb_lu_state_dump, (int state) );
PUBLIC int is_status_msg_expected = FALSE; PUBLIC int is_status_msg_expected = FALSE;
PUBLIC void main(void) PUBLIC int main(int argc, char *argv[])
{ {
int r, caller; int r, caller;
message mess, repl_mess; message mess, repl_mess;
int ipc_status; int ipc_status;
@ -174,6 +174,7 @@ PUBLIC void main(void)
/* Should not be here. Just continue. */ /* Should not be here. Just continue. */
} }
return 1;
} }
/*===========================================================================* /*===========================================================================*

View file

@ -18,9 +18,6 @@
#define error printf #define error printf
_PROTOTYPE( void main, (void) );
_PROTOTYPE( int drv_init, (void) ); _PROTOTYPE( int drv_init, (void) );
_PROTOTYPE( int drv_init_hw, (void) ); _PROTOTYPE( int drv_init_hw, (void) );
_PROTOTYPE( int drv_reset, (void) ); _PROTOTYPE( int drv_reset, (void) );

View file

@ -80,8 +80,6 @@ extern int inet_buf_debug;
u32_t system_hz; u32_t system_hz;
#endif #endif
_PROTOTYPE( void main, (void) );
FORWARD _PROTOTYPE( void nw_conf, (void) ); FORWARD _PROTOTYPE( void nw_conf, (void) );
FORWARD _PROTOTYPE( void nw_init, (void) ); FORWARD _PROTOTYPE( void nw_init, (void) );
FORWARD _PROTOTYPE( void ds_event, (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( void sef_local_startup, (void) );
FORWARD _PROTOTYPE( int sef_cb_init_fresh, (int type, sef_init_info_t *info) ); 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; mq_t *mq;
int ipc_status; int ipc_status;
@ -182,6 +180,7 @@ PUBLIC void main()
} }
} }
ip_panic(("task is not allowed to terminate")); ip_panic(("task is not allowed to terminate"));
return 1;
} }
/*===========================================================================* /*===========================================================================*