Changeset cd27cd1 in mainline for uspace/app/aboutos/aboutos.c


Ignore:
Timestamp:
2024-03-07T09:45:45Z (7 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
211fd68
Parents:
7dbf1f6
git-author:
Jiri Svoboda <jiri@…> (2024-03-06 19:45:34)
git-committer:
Jiri Svoboda <jiri@…> (2024-03-07 09:45:45)
Message:

About HelenOS should fall back to console automatically + fix unused

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/aboutos/aboutos.c

    r7dbf1f6 rcd27cd1  
    5656#define NAME  "aboutos"
    5757
    58 static const char *display_spec = UI_DISPLAY_DEFAULT;
    59 
    6058static void aboutos_wnd_close(ui_window_t *, void *);
    6159static void aboutos_wnd_kbd(ui_window_t *, void *, kbd_event_t *);
     
    140138        gfx_rect_t rect;
    141139        gfx_coord2_t off;
    142         const char *dspec = UI_DISPLAY_DEFAULT;
    143         char *qmark;
     140        const char *dspec = UI_ANY_DEFAULT;
    144141        errno_t rc;
    145142
     
    162159        }
    163160
    164         display_spec = str_dup(dspec);
    165         if (display_spec == NULL) {
    166                 printf("Out of memory.\n");
    167                 return 1;
    168         }
    169 
    170         /* Remove additional arguments */
    171         qmark = str_chr(display_spec, '?');
    172         if (qmark != NULL)
    173                 *qmark = '\0';
    174 
    175161        rc = ui_create(dspec, &ui);
    176162        if (rc != EOK) {
    177                 printf("Error creating UI on display %s.\n", display_spec);
     163                printf("Error creating UI on display %s.\n", dspec);
    178164                return rc;
    179165        }
Note: See TracChangeset for help on using the changeset viewer.