/[gentoo-x86]/net-proxy/torsocks/files/suppress-warning-msgs.patch
Gentoo

Contents of /net-proxy/torsocks/files/suppress-warning-msgs.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Mar 8 18:41:25 2012 UTC (2 years, 4 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Patch to suppress warning messages about symbols not found in shared library

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 --- torsocks-1.2.orig/src/torsocks.c 2011-10-25 17:49:50.000000000 -0400
2 +++ torsocks-1.2/src/torsocks.c 2012-02-21 11:09:20.000000000 -0500
3 @@ -124,9 +124,9 @@
4 #define LOAD_ERROR(s,l) { \
5 const char *error; \
6 error = dlerror(); \
7 - show_msg(l, "The symbol %s() was not found in any shared " \
8 - "library. The error reported was: %s!\n", s, \
9 - (error)?error:"not found"); \
10 + if (error) \
11 + show_msg(l, "The symbol %s() was not found in any shared " \
12 + "library. The error reported was: %s!\n", s, error); \
13 dlerror(); \
14 }
15 pthread_mutex_lock(&torsocks_init_mutex);

  ViewVC Help
Powered by ViewVC 1.1.20