diff options
author | Markus F.X.J. Oberhumer <markus@oberhumer.com> | 2021-03-28 21:16:59 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2021-05-06 18:21:10 +0200 |
commit | 4536f46cfff50c66a115755def0155d8e246b02f (patch) | |
tree | 39339361538ab5ed96cceff78f02ea529a842dd8 /x.c | |
parent | 9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f (diff) | |
download | st-4536f46cfff50c66a115755def0155d8e246b02f.tar.gz st-4536f46cfff50c66a115755def0155d8e246b02f.tar.bz2 st-4536f46cfff50c66a115755def0155d8e246b02f.zip |
Mild const-correctness improvements.
Only touch a few things, the main focus is to
improve code readability.
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -156,7 +156,7 @@ static void xresize(int, int); static void xhints(void); static int xloadcolor(int, const char *, Color *); static int xloadfont(Font *, FcPattern *); -static void xloadfonts(char *, double); +static void xloadfonts(const char *, double); static void xunloadfont(Font *); static void xunloadfonts(void); static void xsetenv(void); @@ -952,7 +952,7 @@ xloadfont(Font *f, FcPattern *pattern) } void -xloadfonts(char *fontstr, double fontsize) +xloadfonts(const char *fontstr, double fontsize) { FcPattern *pattern; double fontval; @@ -960,7 +960,7 @@ xloadfonts(char *fontstr, double fontsize) if (fontstr[0] == '-') pattern = XftXlfdParse(fontstr, False, False); else - pattern = FcNameParse((FcChar8 *)fontstr); + pattern = FcNameParse((const FcChar8 *)fontstr); if (!pattern) die("can't open font %s\n", fontstr); |