1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

wmaker: Added 'const' attribute to most local functions

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-16 17:57:47 +02:00
committed by Carlos R. Mafra
parent 69b6848187
commit f0c1dc9fc3
10 changed files with 24 additions and 24 deletions

View File

@@ -55,7 +55,7 @@ extern WPreferences wPreferences;
#define ICON_SIZE wPreferences.icon_size
/**** Local prototypes *****/
static void UnescapeWM_CLASS(char *str, char **name, char **class);
static void UnescapeWM_CLASS(const char *str, char **name, char **class);
/* XFetchName Wrapper */
Bool wFetchName(Display *dpy, Window win, char **winname)
@@ -435,7 +435,7 @@ static char *getselection(WScreen * scr)
}
static char*
parseuserinputpart(char *line, int *ptr, char *endchars)
parseuserinputpart(const char *line, int *ptr, const char *endchars)
{
int depth = 0, begin;
char *value = NULL;
@@ -459,7 +459,7 @@ parseuserinputpart(char *line, int *ptr, char *endchars)
}
static char*
getuserinput(WScreen *scr, char *line, int *ptr, Bool advanced)
getuserinput(WScreen *scr, const char *line, int *ptr, Bool advanced)
{
char *ret = NULL, *title = NULL, *prompt = NULL, *name = NULL;
int rv;
@@ -870,7 +870,7 @@ char *EscapeWM_CLASS(char *name, char *class)
return ret;
}
static void UnescapeWM_CLASS(char *str, char **name, char **class)
static void UnescapeWM_CLASS(const char *str, char **name, char **class)
{
int i, j, k, dot;