gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r4682 - in GNUnet/src: include util/error


From: gnunet
Subject: [GNUnet-SVN] r4682 - in GNUnet/src: include util/error
Date: Thu, 22 Mar 2007 15:46:59 -0600 (MDT)

Author: durner
Date: 2007-03-22 15:46:59 -0600 (Thu, 22 Mar 2007)
New Revision: 4682

Modified:
   GNUnet/src/include/gnunet_util_error.h
   GNUnet/src/util/error/error.c
Log:
wrapper for STRERROR so that clients don't have to depend on plibc directly

Modified: GNUnet/src/include/gnunet_util_error.h
===================================================================
--- GNUnet/src/include/gnunet_util_error.h      2007-03-22 21:44:04 UTC (rev 
4681)
+++ GNUnet/src/include/gnunet_util_error.h      2007-03-22 21:46:59 UTC (rev 
4682)
@@ -166,6 +166,8 @@
 GE_create_context_multiplexer(struct GE_Context * ctx1,
                              struct GE_Context * ctx2);
 
+char *GE_strerror(int errnum);
+
 /**
  * If this context would log an event of the given kind,
  * execute statement "a".

Modified: GNUnet/src/util/error/error.c
===================================================================
--- GNUnet/src/util/error/error.c       2007-03-22 21:44:04 UTC (rev 4681)
+++ GNUnet/src/util/error/error.c       2007-03-22 21:46:59 UTC (rev 4682)
@@ -335,3 +335,6 @@
   defaultContext = ctx;
 }
 
+char *GE_strerror(int errnum) {
+  return STRERROR(errnum);
+}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]