Commit 08d1ca69 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

Add const

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7247a199
......@@ -173,7 +173,7 @@ static int initAllCSSKeys( dvd_reader_t *dvd )
uint32_t start, len;
int title;
char *nokeys_str = getenv("DVDREAD_NOKEYS");
const char *nokeys_str = getenv("DVDREAD_NOKEYS");
if(nokeys_str != NULL)
return 0;
......@@ -642,7 +642,7 @@ void DVDClose( dvd_reader_t *dvd )
/**
* Open an unencrypted file on a DVD image file.
*/
static dvd_file_t *DVDOpenFileUDF( dvd_reader_t *dvd, char *filename,
static dvd_file_t *DVDOpenFileUDF( dvd_reader_t *dvd, const char *filename,
int do_cache )
{
uint32_t start, len;
......@@ -746,7 +746,7 @@ static int findDVDFile( dvd_reader_t *dvd, const char *file, char *filename )
/**
* Open an unencrypted file from a DVD directory tree.
*/
static dvd_file_t *DVDOpenFilePath( dvd_reader_t *dvd, char *filename )
static dvd_file_t *DVDOpenFilePath( dvd_reader_t *dvd, const char *filename )
{
char full_path[ PATH_MAX + 1 ];
dvd_file_t *dvd_file;
......
......@@ -794,7 +794,7 @@ static int UDFFindPartition( dvd_reader_t *device, int partnum,
return part->valid;
}
uint32_t UDFFindFile( dvd_reader_t *device, char *filename,
uint32_t UDFFindFile( dvd_reader_t *device, const char *filename,
uint32_t *filesize )
{
uint8_t LogBlock_base[ DVD_VIDEO_LB_LEN + 2048 ];
......
......@@ -46,7 +46,7 @@ extern "C" {
* '/VIDEO_TS/VTS_01_1.IFO'. On success, filesize will be set to the size of
* the file in bytes.
*/
uint32_t UDFFindFile( dvd_reader_t *device, char *filename, uint32_t *size );
uint32_t UDFFindFile( dvd_reader_t *device, const char *filename, uint32_t *size );
int UDFGetVolumeIdentifier(dvd_reader_t *device,
char *volid, unsigned int volid_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment