[libdvdcss-devel] [PATCH 09/47] error: Drop unnecessary macro indirection for print_error().

Diego Biurrun diego at biurrun.de
Wed Oct 29 21:33:09 CET 2014


---
 src/error.c     | 2 +-
 src/libdvdcss.h | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/error.c b/src/error.c
index 7ea62ae..9d5f242 100644
--- a/src/error.c
+++ b/src/error.c
@@ -29,7 +29,7 @@
 /*****************************************************************************
  * Error messages
  *****************************************************************************/
-void _print_error( dvdcss_t dvdcss, char *psz_string )
+void print_error( dvdcss_t dvdcss, char *psz_string )
 {
     if( dvdcss->b_errors )
     {
diff --git a/src/libdvdcss.h b/src/libdvdcss.h
index 2faaa5d..71e8daf 100644
--- a/src/libdvdcss.h
+++ b/src/libdvdcss.h
@@ -87,7 +87,6 @@ struct dvdcss_s
 /*****************************************************************************
  * Functions used across the library
  *****************************************************************************/
-#define print_error(dvdcss,msg) _print_error(dvdcss,msg)
 #if defined( _MSC_VER )
 #include <stdarg.h>
 __forceinline void print_debug(dvdcss_t dvdcss, const char *msg,...)
@@ -110,6 +109,6 @@ __forceinline void print_debug(dvdcss_t dvdcss, const char *msg,...)
     }
 #endif
 
-void _print_error ( dvdcss_t, char * );
+void print_error ( dvdcss_t, char * );
 
 #endif /* DVDCSS_LIBDVDCSS_H */
-- 
1.9.1



More information about the libdvdcss-devel mailing list