Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/fb/serial_console.c

    r4f14e1f8 rc0699467  
    5252#include "serial_console.h"
    5353
     54// FIXME: remove this header
     55#include <abi/ipc/methods.h>
     56
    5457#define MAX_CONTROL 20
    5558
     
    312315 * Main function of the thread serving client connections.
    313316 */
    314 void serial_client_connection(ipc_callid_t iid, ipc_call_t *icall)
     317void serial_client_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    315318{
    316319        keyfield_t *interbuf = NULL;
     
    344347                int retval;
    345348               
    346                 switch (IPC_GET_IMETHOD(call)) {
    347                 case IPC_M_PHONE_HUNGUP:
     349                if (!IPC_GET_IMETHOD(call)) {
    348350                        client_connected = 0;
    349351                        async_answer_0(callid, EOK);
     
    351353                        /* Exit thread */
    352354                        return;
     355                }
     356               
     357                switch (IPC_GET_IMETHOD(call)) {
    353358                case IPC_M_SHARE_OUT:
    354359                        /* We accept one area for data interchange */
Note: See TracChangeset for help on using the changeset viewer.