Ignore:
File:
1 edited

Legend:

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

    ra635535 r60ebe63  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * Copyright (c) 2011 Martin Decky
    44 * All rights reserved.
     
    3737#include <stdio.h>
    3838#include <adt/prodcons.h>
    39 #include <io/console.h>
    4039#include <io/input.h>
    4140#include <ipc/vfs.h>
     
    8988        con_srvs_t srvs;         /**< Console service setup */
    9089} console_t;
    91 
    92 static loc_srv_t *console_srv;
    9390
    9491/** Input server proxy */
     
    905902        /* Register server */
    906903        async_set_fallback_port_handler(client_connection, NULL);
    907         rc = loc_server_register(NAME, &console_srv);
     904        rc = loc_server_register(NAME);
    908905        if (rc != EOK) {
    909906                printf("%s: Unable to register server (%s)\n", NAME,
     
    955952                        snprintf(vc, LOC_NAME_MAXLEN, "%s/vc%zu", NAMESPACE, i);
    956953
    957                         if (loc_service_register(console_srv, vc,
    958                             &consoles[i].dsid) != EOK) {
     954                        if (loc_service_register(vc, &consoles[i].dsid) != EOK) {
    959955                                printf("%s: Unable to register device %s\n", NAME, vc);
    960956                                return false;
Note: See TracChangeset for help on using the changeset viewer.