mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-28 19:05:51 +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
@@ -153,7 +153,7 @@ RImage *RGetImageFromXPMData(RContext * context, char **xpmData)
|
||||
return image;
|
||||
}
|
||||
|
||||
RImage *RLoadXPM(RContext * context, char *file)
|
||||
RImage *RLoadXPM(RContext * context, const char *file)
|
||||
{
|
||||
Display *dpy = context->dpy;
|
||||
Colormap cmap = context->cmap;
|
||||
@@ -164,7 +164,7 @@ RImage *RLoadXPM(RContext * context, char *file)
|
||||
int *p;
|
||||
int i;
|
||||
|
||||
i = XpmReadFileToXpmImage(file, &xpm, (XpmInfo *) NULL);
|
||||
i = XpmReadFileToXpmImage((char *)file, &xpm, (XpmInfo *) NULL);
|
||||
if (i != XpmSuccess) {
|
||||
switch (i) {
|
||||
case XpmOpenFailed:
|
||||
|
||||
Reference in New Issue
Block a user