Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/remcons/remcons.c

    rc8211849 rb7fd2a0  
    7070    sizeof(telnet_force_character_mode_command) / sizeof(telnet_cmd_t);
    7171
    72 static int remcons_open(con_srvs_t *, con_srv_t *);
    73 static int remcons_close(con_srv_t *);
    74 static int remcons_write(con_srv_t *, void *, size_t, size_t *);
     72static errno_t remcons_open(con_srvs_t *, con_srv_t *);
     73static errno_t remcons_close(con_srv_t *);
     74static errno_t remcons_write(con_srv_t *, void *, size_t, size_t *);
    7575static void remcons_sync(con_srv_t *);
    7676static void remcons_clear(con_srv_t *);
    7777static void remcons_set_pos(con_srv_t *, sysarg_t col, sysarg_t row);
    78 static int remcons_get_pos(con_srv_t *, sysarg_t *, sysarg_t *);
    79 static int remcons_get_size(con_srv_t *, sysarg_t *, sysarg_t *);
    80 static int remcons_get_color_cap(con_srv_t *, console_caps_t *);
    81 static int remcons_get_event(con_srv_t *, cons_event_t *);
     78static errno_t remcons_get_pos(con_srv_t *, sysarg_t *, sysarg_t *);
     79static errno_t remcons_get_size(con_srv_t *, sysarg_t *, sysarg_t *);
     80static errno_t remcons_get_color_cap(con_srv_t *, console_caps_t *);
     81static errno_t remcons_get_event(con_srv_t *, cons_event_t *);
    8282
    8383static con_ops_t con_ops = {
     
    114114}
    115115
    116 static int remcons_open(con_srvs_t *srvs, con_srv_t *srv)
     116static errno_t remcons_open(con_srvs_t *srvs, con_srv_t *srv)
    117117{
    118118        telnet_user_t *user = srv_to_user(srv);
     
    127127}
    128128
    129 static int remcons_close(con_srv_t *srv)
     129static errno_t remcons_close(con_srv_t *srv)
    130130{
    131131        telnet_user_t *user = srv_to_user(srv);
     
    137137}
    138138
    139 static int remcons_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten)
    140 {
    141         telnet_user_t *user = srv_to_user(srv);
    142         int rc;
     139static errno_t remcons_write(con_srv_t *srv, void *data, size_t size, size_t *nwritten)
     140{
     141        telnet_user_t *user = srv_to_user(srv);
     142        errno_t rc;
    143143
    144144        rc = telnet_user_send_data(user, data, size);
     
    167167}
    168168
    169 static int remcons_get_pos(con_srv_t *srv, sysarg_t *col, sysarg_t *row)
     169static errno_t remcons_get_pos(con_srv_t *srv, sysarg_t *col, sysarg_t *row)
    170170{
    171171        telnet_user_t *user = srv_to_user(srv);
     
    177177}
    178178
    179 static int remcons_get_size(con_srv_t *srv, sysarg_t *cols, sysarg_t *rows)
     179static errno_t remcons_get_size(con_srv_t *srv, sysarg_t *cols, sysarg_t *rows)
    180180{
    181181        (void) srv;
     
    187187}
    188188
    189 static int remcons_get_color_cap(con_srv_t *srv, console_caps_t *ccaps)
     189static errno_t remcons_get_color_cap(con_srv_t *srv, console_caps_t *ccaps)
    190190{
    191191        (void) srv;
     
    195195}
    196196
    197 static int remcons_get_event(con_srv_t *srv, cons_event_t *event)
     197static errno_t remcons_get_event(con_srv_t *srv, cons_event_t *event)
    198198{
    199199        telnet_user_t *user = srv_to_user(srv);
    200200        kbd_event_t kevent;
    201         int rc;
     201        errno_t rc;
    202202
    203203        rc = telnet_user_get_next_keyboard_event(user, &kevent);
     
    232232 * @param arg Corresponding @c telnet_user_t structure.
    233233 */
    234 static int spawn_task_fibril(void *arg)
     234static errno_t spawn_task_fibril(void *arg)
    235235{
    236236        telnet_user_t *user = arg;
     
    238238        task_id_t task;
    239239        task_wait_t wait;
    240         int rc = task_spawnl(&task, &wait, APP_GETTERM, APP_GETTERM, user->service_name,
     240        errno_t rc = task_spawnl(&task, &wait, APP_GETTERM, APP_GETTERM, user->service_name,
    241241            "/loc", "--msg", "--", APP_SHELL, NULL);
    242242        if (rc != EOK) {
     
    300300        telnet_user_add(user);
    301301
    302         int rc = loc_service_register(user->service_name, &user->service_id);
     302        errno_t rc = loc_service_register(user->service_name, &user->service_id);
    303303        if (rc != EOK) {
    304304                telnet_user_error(user, "Unable to register %s with loc: %s.",
     
    344344int main(int argc, char *argv[])
    345345{
    346         int rc;
     346        errno_t rc;
    347347        tcp_listener_t *lst;
    348348        tcp_t *tcp;
Note: See TracChangeset for help on using the changeset viewer.