Changeset b74959bd in mainline for uspace/srv/kbd
- Timestamp:
- 2007-11-20T21:33:32Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8498915
- Parents:
- 3209923
- File:
-
- 1 edited
-
uspace/srv/kbd/generic/kbd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/kbd/generic/kbd.c
r3209923 rb74959bd 69 69 70 70 if (cons_connected && phone2cons != -1) { 71 /* recode to ASCII - one interrupt can produce more than one code so result is stored in fifo */ 71 /* 72 * recode to ASCII - one interrupt can produce more than one 73 * code so result is stored in fifo 74 */ 72 75 while (!keybuffer_empty(&keybuffer)) { 73 76 if (!keybuffer_pop(&keybuffer, (int *)&chr)) … … 86 89 87 90 if (cons_connected) { 88 ipc_answer_ fast(iid, ELIMIT, 0, 0);91 ipc_answer_0(iid, ELIMIT); 89 92 return; 90 93 } 91 94 cons_connected = 1; 92 ipc_answer_ fast(iid, 0, 0, 0);95 ipc_answer_0(iid, EOK); 93 96 94 97 while (1) { … … 99 102 ipc_hangup(phone2cons); 100 103 phone2cons = -1; 101 ipc_answer_ fast(callid, 0,0,0);104 ipc_answer_0(callid, EOK); 102 105 return; 103 106 case IPC_M_CONNECT_TO_ME: … … 112 115 retval = EINVAL; 113 116 } 114 ipc_answer_ fast(callid, retval, 0, 0);117 ipc_answer_0(callid, retval); 115 118 } 116 119 }
Note:
See TracChangeset
for help on using the changeset viewer.
