Fixed various GCC compiler warnings for the kernel.

Only main() now gives a warning about the return type (GCC wants an int).
This commit is contained in:
Jorrit Herder
2005-06-21 10:47:46 +00:00
parent 3eeff022fb
commit 355a10864b
9 changed files with 36 additions and 47 deletions

View File

@@ -23,7 +23,6 @@ register message *m_ptr; /* pointer to request message */
/* Dismember the request message. */
int irq_vec;
int irq_hook_id;
int proc_nr;
int r = OK;
irq_hook_t *hook_ptr;

View File

@@ -188,8 +188,7 @@ message *m_ptr; /* pointer to request message */
{
/* Handle sys_exit. A user process has exited (the PM sent the request).
*/
register struct proc *rp, *rc;
struct proc *np, *xp;
register struct proc *rc;
int exit_proc_nr;
/* Get a pointer to the process that exited. */

View File

@@ -25,7 +25,6 @@ message *m_ptr; /* pointer to request message */
/* Handle sys_exit. A server or driver wants to exit. This may happen
* on a panic, but also is done when MINIX is shutdown.
*/
register struct proc *rp;
int proc_nr = m_ptr->m_source; /* can only exit own process */
if (m_ptr->EXIT_STATUS != 0) {