mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 13:28:05 +01:00
Added 'const' attribute to the file name parameter to load/save
This name is not modified by the callee functions (and it should not be anyway), so let's make it official in the internal functions
This commit is contained in:
committed by
Carlos R. Mafra
parent
225c99a6ca
commit
d1e1c13fa3
@@ -91,7 +91,7 @@ static void my_error_exit(j_common_ptr cinfo)
|
||||
longjmp(myerr->setjmp_buffer, 1);
|
||||
}
|
||||
|
||||
RImage *RLoadJPEG(RContext * context, char *file_name)
|
||||
RImage *RLoadJPEG(RContext * context, const char *file_name)
|
||||
{
|
||||
RImage *image = NULL;
|
||||
struct jpeg_decompress_struct cinfo;
|
||||
|
||||
Reference in New Issue
Block a user