diff options
author | Roland McGrath <roland@gnu.org> | 2001-12-17 01:03:08 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-12-17 01:03:08 +0000 |
commit | ca18306b75e87b4ee356a6b47a3695c6b23f48e9 (patch) | |
tree | c0def3db3b77cf267bcfae29132609a5fc125de0 /hurd/intr-msg.c | |
parent | a51751c26c0e0c135682f67db617a0a0f426aa67 (diff) | |
download | glibc-ca18306b75e87b4ee356a6b47a3695c6b23f48e9.zip glibc-ca18306b75e87b4ee356a6b47a3695c6b23f48e9.tar.gz glibc-ca18306b75e87b4ee356a6b47a3695c6b23f48e9.tar.bz2 |
* hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add `break' after
`default:' to silence new GCC warning.
Rewrite cast of lvalue to silence new GCC warning.
* sysdeps/mach/hurd/i386/init-first.c: Avoid multi-line strings in asm.
Diffstat (limited to 'hurd/intr-msg.c')
-rw-r--r-- | hurd/intr-msg.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/hurd/intr-msg.c b/hurd/intr-msg.c index 7b6ce05..ae997b2 100644 --- a/hurd/intr-msg.c +++ b/hurd/intr-msg.c @@ -1,5 +1,5 @@ /* Replacement for mach_msg used in interruptible Hurd RPCs. - Copyright (C) 95,96,97,98,99,2000 Free Software Foundation, Inc. + Copyright (C) 95,96,97,98,99,2000,01 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -222,8 +222,11 @@ _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg, &~ (sizeof (mach_msg_type_t) - 1)); } else - clean_ports (*((void **) ty)++, - ty->msgtl_header.msgt_deallocate); + { + clean_ports (*(void **) ty, + ty->msgtl_header.msgt_deallocate); + ++(void **) ty; + } } } break; @@ -332,6 +335,7 @@ _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg, break; default: /* Quiet -Wswitch-enum. */ + break; } ss->intr_port = MACH_PORT_NULL; |