Changeset 520acaf in mainline for uspace/srv/hid/remcons/remcons.c


Ignore:
Timestamp:
2012-06-06T21:13:29Z (12 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f679702
Parents:
11b9ad7 (diff), 3123d2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    r11b9ad7 r520acaf  
    7171        TELNET_IAC, TELNET_WONT, TELNET_LINEMODE
    7272};
     73
    7374static const size_t telnet_force_character_mode_command_count =
    7475    sizeof(telnet_force_character_mode_command) / sizeof(telnet_cmd_t);
     
    272273static int network_user_fibril(void *arg)
    273274{
    274         int rc;
    275275        telnet_user_t *user = arg;
    276276
    277         rc = loc_service_register(user->service_name, &user->service_id);
     277        int rc = loc_service_register(user->service_name, &user->service_id);
    278278        if (rc != EOK) {
    279279                telnet_user_error(user, "Unable to register %s with loc: %s.",
     
    284284        telnet_user_log(user, "Service %s registerd with id %" PRIun ".",
    285285            user->service_name, user->service_id);
    286 
     286       
    287287        fid_t spawn_fibril = fibril_create(spawn_task_fibril, user);
    288288        assert(spawn_fibril);
    289289        fibril_add_ready(spawn_fibril);
    290 
     290       
    291291        /* Wait for all clients to exit. */
    292292        fibril_mutex_lock(&user->guard);
     
    304304        }
    305305        fibril_mutex_unlock(&user->guard);
    306 
     306       
    307307        rc = loc_service_unregister(user->service_id);
    308308        if (rc != EOK) {
     
    324324        async_set_client_connection(client_connection);
    325325        int rc = loc_server_register(NAME);
    326         if (rc < 0) {
    327                 fprintf(stderr, NAME ": Unable to register server: %s.\n",
    328                     str_error(rc));
    329                 return 1;
    330         }
    331 
     326        if (rc != EOK) {
     327                fprintf(stderr, "%s: Unable to register server\n", NAME);
     328                return rc;
     329        }
     330       
    332331        struct sockaddr_in addr;
    333 
     332       
    334333        addr.sin_family = AF_INET;
    335334        addr.sin_port = htons(port);
    336 
     335       
    337336        rc = inet_pton(AF_INET, "127.0.0.1", (void *)
    338337            &addr.sin_addr.s_addr);
Note: See TracChangeset for help on using the changeset viewer.