aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygserver/msg.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-11-22 22:37:13 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-11-22 22:37:13 +0000
commitc026d842096d534510b5448a31244e6921a2c60e (patch)
treee913947223bb0d2691cd20919812a3831bbe949a /winsup/cygserver/msg.cc
parent876083f32e5cb04a9318466bb8d239d4a2f735ef (diff)
downloadnewlib-c026d842096d534510b5448a31244e6921a2c60e.zip
newlib-c026d842096d534510b5448a31244e6921a2c60e.tar.gz
newlib-c026d842096d534510b5448a31244e6921a2c60e.tar.bz2
* msg.cc (client_request_msg::serve): Add default case to msgop switch.
* sem.cc (client_request_sem::serve): Add default case to semop switch. * shm.cc (client_request_shm::serve): Add default case to shmop switch.
Diffstat (limited to 'winsup/cygserver/msg.cc')
-rw-r--r--winsup/cygserver/msg.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygserver/msg.cc b/winsup/cygserver/msg.cc
index 713a586..52fdcd0 100644
--- a/winsup/cygserver/msg.cc
+++ b/winsup/cygserver/msg.cc
@@ -95,6 +95,10 @@ client_request_msg::serve (transport_layer_base *const conn,
case MSGOP_msgsnd:
res = msgsnd (&td, &_parameters.in.sndargs);
break;
+ default:
+ res = ENOSYS;
+ td.td_retval[0] = -1;
+ break;
}
/* Allocated by the call to adjust_identity_info(). */
if (_parameters.in.ipcblk.gidlist)