From: "Rodolfo García Peñas (kix)" <[email protected]>

The function get_default_image_path has the WScreen argument that
is not used, so can be removed.

The function could be static, but perhaps is interesting leave it
as public.
---
 src/defaults.h  |    2 +-
 src/wdefaults.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/defaults.h b/src/defaults.h
index 197b9ab..a2b9f24 100644
--- a/src/defaults.h
+++ b/src/defaults.h
@@ -41,7 +41,7 @@ void wDefaultFillAttributes(char *instance, char *class,
                             WWindowAttributes *attr, WWindowAttributes *mask,
                             Bool useGlobalDefault);
 
-char *get_default_image_path(WScreen *scr);
+char *get_default_image_path(void);
 RImage *get_default_image(WScreen *scr);
 
 char *wDefaultGetIconFile(char *instance, char *class, Bool default_icon);
diff --git a/src/wdefaults.c b/src/wdefaults.c
index 4000085..ae88a1d 100644
--- a/src/wdefaults.c
+++ b/src/wdefaults.c
@@ -413,7 +413,7 @@ char *get_icon_filename(WScreen *scr, char *winstance, char 
*wclass, char *comma
        }
 
        if (!file_path && default_icon)
-               file_path = get_default_image_path(scr);        
+               file_path = get_default_image_path();   
 
        return file_path;
 }
@@ -438,7 +438,7 @@ RImage *get_rimage_from_file(WScreen *scr, char *file_name, 
int max_size)
 
 /* This function returns the default icon's full path
  * If the path for an icon is not found, returns NULL */
-char *get_default_image_path(WScreen *scr)
+char *get_default_image_path(void)
 {
        char *path = NULL, *file = NULL;
 
@@ -457,7 +457,7 @@ RImage *get_default_image(WScreen *scr)
        char *path = NULL;
 
        /* Get the filename full path */
-       path = get_default_image_path(scr);
+       path = get_default_image_path();
        if (!path)
                return NULL;
 
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to