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

Diego Biurrun git at videolan.org
Thu Oct 30 17:16:29 CET 2014


libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Oct 22 13:10:51 2014 +0200| [eb528eef3204462f53c7f42612342be4a482d220] | committer: Diego Biurrun

error: Drop unnecessary macro indirection for print_error().

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=eb528eef3204462f53c7f42612342be4a482d220
---

 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 */



More information about the libdvdcss-devel mailing list