Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2619 → Rev 2618

/trunk/uspace/srv/console/console.c
277,7 → 277,8
 
for (j = 0; j < conn->screenbuffer.size_y; j++)
for (i = 0; i < conn->screenbuffer.size_x; i++) {
field = get_field_at(&conn->screenbuffer, i, j);
field = get_field_at(&conn->screenbuffer, i,
j);
if (!style_same(*style, field->style))
set_style(&field->style);
style = &field->style;
348,8 → 349,8
/* if client is awaiting key, send it */
if (conn->keyrequest_counter > 0) {
conn->keyrequest_counter--;
ipc_answer_1(fifo_pop(conn->keyrequests), EOK,
c);
ipc_answer_fast(fifo_pop(conn->keyrequests), 0,
c, 0);
break;
}
360,7 → 361,7
default:
retval = ENOENT;
}
ipc_answer_0(callid, retval);
ipc_answer_fast(callid, retval, 0, 0);
}
}
 
374,7 → 375,7
connection_t *conn;
 
if ((consnum = find_free_connection()) == -1) {
ipc_answer_0(iid, ELIMIT);
ipc_answer_fast(iid, ELIMIT, 0, 0);
return;
}
conn = &connections[consnum];
386,7 → 387,7
screenbuffer_clear(&conn->screenbuffer);
/* Accept the connection */
ipc_answer_0(iid, EOK);
ipc_answer_fast(iid, 0, 0, 0);
 
while (1) {
async_serialize_end();
402,8 → 403,8
/* Answer all pending requests */
while (conn->keyrequest_counter > 0) {
conn->keyrequest_counter--;
ipc_answer_0(fifo_pop(conn->keyrequests),
ENOENT);
ipc_answer_fast(fifo_pop(conn->keyrequests),
ENOENT, 0, 0);
break;
}
conn->used = 0;
463,7 → 464,7
* No key available and too many
* requests => fail.
*/
ipc_answer_0(callid, ELIMIT);
ipc_answer_fast(callid, ELIMIT, 0, 0);
}
continue;
}
470,7 → 471,7
keybuffer_pop(&conn->keybuffer, (int *) &arg1);
break;
}
ipc_answer_2(callid, EOK, arg1, arg2);
ipc_answer_fast(callid, 0, arg1, arg2);
}
}