summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2018-02-23 09:36:30 +0000
committerGitHub <noreply@github.com>2018-02-23 09:36:30 +0000
commit64fc3ac7ce15bd18ecd75bb02f87b59ecb701816 (patch)
treed0d19e10df504860d318b51c9c3136c21725f95b /src
parent6bdfdcef3dff741cae6d57bbd7786ed0cca2af7a (diff)
parentc8d7ae6bf8f2d0946f8955d1d0f8de3a18306e23 (diff)
downloadlibepoxy-64fc3ac7ce15bd18ecd75bb02f87b59ecb701816.tar.gz
Merge pull request #143 from ikeydoherty/comp-warnings
Fix printf family usage
Diffstat (limited to 'src')
-rw-r--r--src/dispatch_common.c3
-rw-r--r--src/dispatch_wgl.c6
2 files changed, 4 insertions, 5 deletions
diff --git a/src/dispatch_common.c b/src/dispatch_common.c
index c973572..4c5e9bc 100644
--- a/src/dispatch_common.c
+++ b/src/dispatch_common.c
@@ -296,8 +296,7 @@ get_dlopen_handle(void **handle, const char *lib_name, bool exit_on_fail)
return true;
if (!library_initialized) {
- fprintf(stderr,
- "Attempting to dlopen() while in the dynamic linker.\n");
+ fputs("Attempting to dlopen() while in the dynamic linker.\n", stderr);
abort();
}
diff --git a/src/dispatch_wgl.c b/src/dispatch_wgl.c
index fe5379d..7baf130 100644
--- a/src/dispatch_wgl.c
+++ b/src/dispatch_wgl.c
@@ -53,9 +53,9 @@ epoxy_has_wgl_extension(HDC hdc, const char *ext)
getext = (void *)wglGetProcAddress("wglGetExtensionsStringARB");
if (!getext) {
- fprintf(stderr,
- "Implementation unexpectedly missing "
- "WGL_ARB_extensions_string. Probably a libepoxy bug.\n");
+ fputs("Implementation unexpectedly missing "
+ "WGL_ARB_extensions_string. Probably a libepoxy bug.\n",
+ stderr);
return false;
}