From 930be00966dd6ba5eb9977e2368cba12d7bb9132 Mon Sep 17 00:00:00 2001
From: Jonas 'Sortie' Termansen <sortie@maxsi.org>
Date: Mon, 19 Aug 2013 17:30:49 +0200
Subject: [PATCH] Don't write errors to stderr in dlopen(3) and dlsym(3).

---
 libc/dlfcn/dlfcn.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libc/dlfcn/dlfcn.cpp b/libc/dlfcn/dlfcn.cpp
index c381dcda..2651bdd5 100644
--- a/libc/dlfcn/dlfcn.cpp
+++ b/libc/dlfcn/dlfcn.cpp
@@ -1,6 +1,6 @@
 /*******************************************************************************
 
-    Copyright(C) Jonas 'Sortie' Termansen 2012.
+    Copyright(C) Jonas 'Sortie' Termansen 2012, 2013.
 
     This file is part of the Sortix C Library.
 
@@ -29,17 +29,17 @@ static const char* dlerrormsg = NULL;
 
 extern "C" void* dlopen(const char* filename, int mode)
 {
+	(void) filename;
 	(void) mode;
 	dlerrormsg = "Sortix does not yet support dynamic linking";
-	fprintf(stderr, "%s: loading file: %s\n", dlerrormsg, filename);
 	return NULL;
 }
 
 extern "C" void* dlsym(void* handle, const char* name)
 {
 	(void) handle;
+	(void) name;
 	dlerrormsg = "Sortix does not yet support dynamic linking";
-	fprintf(stderr, "%s: resolving symbol: %s\n", dlerrormsg, name);
 	return NULL;
 }