ref: efd20464a07fdff475b6cecedb8b743f32efe905
parent: 03949ac8b59f0cf68649745f8bc310da9d5a1e4f
author: Diego Elio Pettenò <flameeyes@flameeyes.eu>
date: Wed Feb 13 14:01:23 EST 2013
src: mark _dvdcss_titlekey static as it's never used outside of the unit Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
--- a/src/css.c
+++ b/src/css.c
@@ -87,6 +87,8 @@
static int AttackPadding ( uint8_t const[], int, uint8_t * );
#endif
+static int _dvdcss_titlekey ( dvdcss_t, int , dvd_key_t );
+
/*****************************************************************************
* _dvdcss_test: check if the disc is encrypted or not
*****************************************************************************
@@ -406,7 +408,7 @@
/*****************************************************************************
* _dvdcss_titlekey: get title key.
*****************************************************************************/
-int _dvdcss_titlekey( dvdcss_t dvdcss, int i_pos, dvd_key_t p_title_key )
+static int _dvdcss_titlekey( dvdcss_t dvdcss, int i_pos, dvd_key_t p_title_key )
{
static uint8_t p_garbage[ DVDCSS_BLOCK_SIZE ]; /* we never read it back */
uint8_t p_key[ KEY_SIZE ];
--- a/src/css.h
+++ b/src/css.h
@@ -57,7 +57,6 @@
int _dvdcss_test ( dvdcss_t );
int _dvdcss_title ( dvdcss_t, int );
int _dvdcss_disckey ( dvdcss_t );
-int _dvdcss_titlekey ( dvdcss_t, int , dvd_key_t );
int _dvdcss_unscramble ( uint8_t *, uint8_t * );
#endif /* DVDCSS_CSS_H */