examples: use perror instead of fprintf GNU %m printf extension

This commit is contained in:
Tudor Brindus 2020-10-10 22:57:45 -04:00 committed by Simon Ser
parent 45c1a3621c
commit ec3f432bbb
3 changed files with 6 additions and 6 deletions

View file

@ -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;
}