mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
examples: use perror instead of fprintf GNU %m printf extension
This commit is contained in:
parent
45c1a3621c
commit
ec3f432bbb
3 changed files with 6 additions and 6 deletions
|
|
@ -61,7 +61,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
struct wl_display * display = wl_display_connect(NULL);
|
||||
if (display == NULL) {
|
||||
fprintf(stderr, "failed to create display: %m\n");
|
||||
perror("failed to create display");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue