1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-06 05:44:11 +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:
Christophe CURIS
2013-05-01 20:26:32 +02:00
committed by Carlos R. Mafra
parent 225c99a6ca
commit d1e1c13fa3
10 changed files with 22 additions and 22 deletions

View File

@@ -113,7 +113,7 @@ static RImage *load_pixmap(FILE * file, int w, int h, int max, int raw)
return NULL;
}
RImage *RLoadPPM(char *file_name)
RImage *RLoadPPM(const char *file_name)
{
FILE *file;
RImage *image = NULL;