aboutsummaryrefslogtreecommitdiff
path: root/examples/virtual-pointer.c
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2020-10-10 22:57:45 -0400
committerSimon Ser <contact@emersion.fr>2020-10-11 06:36:23 +0200
commitec3f432bbb4cbcb75adc695753353239e017a8bd (patch)
tree121a656d43e54c237703ba9cddee022cd94e1b2b /examples/virtual-pointer.c
parent45c1a3621cc6874e5b5d9694015241668980df5d (diff)
examples: use `perror` instead of `fprintf` GNU %m `printf` extension
Diffstat (limited to 'examples/virtual-pointer.c')
-rw-r--r--examples/virtual-pointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/virtual-pointer.c b/examples/virtual-pointer.c
index 8fd14830..b91768a4 100644
--- a/examples/virtual-pointer.c
+++ b/examples/virtual-pointer.c
@@ -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;
}