Changeset cd27cd1 in mainline for uspace/app/aboutos/aboutos.c
- Timestamp:
- 2024-03-07T09:45:45Z (7 months ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/aboutos/aboutos.c
r7dbf1f6 rcd27cd1 56 56 #define NAME "aboutos" 57 57 58 static const char *display_spec = UI_DISPLAY_DEFAULT;59 60 58 static void aboutos_wnd_close(ui_window_t *, void *); 61 59 static void aboutos_wnd_kbd(ui_window_t *, void *, kbd_event_t *); … … 140 138 gfx_rect_t rect; 141 139 gfx_coord2_t off; 142 const char *dspec = UI_DISPLAY_DEFAULT; 143 char *qmark; 140 const char *dspec = UI_ANY_DEFAULT; 144 141 errno_t rc; 145 142 … … 162 159 } 163 160 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 175 161 rc = ui_create(dspec, &ui); 176 162 if (rc != EOK) { 177 printf("Error creating UI on display %s.\n", d isplay_spec);163 printf("Error creating UI on display %s.\n", dspec); 178 164 return rc; 179 165 }
Note:
See TracChangeset
for help on using the changeset viewer.