aboutsummaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorMarkus F.X.J. Oberhumer <markus@oberhumer.com>2021-03-28 21:16:59 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2021-05-06 18:21:10 +0200
commit4536f46cfff50c66a115755def0155d8e246b02f (patch)
tree39339361538ab5ed96cceff78f02ea529a842dd8 /st.h
parent9e68fdbcdb06dfa3d23fe3a7a7f7b59e40e1ea2f (diff)
downloadst-patched-4536f46cfff50c66a115755def0155d8e246b02f.tar.bz2
st-patched-4536f46cfff50c66a115755def0155d8e246b02f.tar.xz
st-patched-4536f46cfff50c66a115755def0155d8e246b02f.zip
Mild const-correctness improvements.
Only touch a few things, the main focus is to improve code readability.
Diffstat (limited to 'st.h')
-rw-r--r--st.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.h b/st.h
index 3d351b6..fa2eddf 100644
--- a/st.h
+++ b/st.h
@@ -91,7 +91,7 @@ void tnew(int, int);
91void tresize(int, int); 91void tresize(int, int);
92void tsetdirtattr(int); 92void tsetdirtattr(int);
93void ttyhangup(void); 93void ttyhangup(void);
94int ttynew(char *, char *, char *, char **); 94int ttynew(const char *, char *, const char *, char **);
95size_t ttyread(void); 95size_t ttyread(void);
96void ttyresize(int, int); 96void ttyresize(int, int);
97void ttywrite(const char *, size_t, int); 97void ttywrite(const char *, size_t, int);
@@ -109,7 +109,7 @@ size_t utf8encode(Rune, char *);
109 109
110void *xmalloc(size_t); 110void *xmalloc(size_t);
111void *xrealloc(void *, size_t); 111void *xrealloc(void *, size_t);
112char *xstrdup(char *); 112char *xstrdup(const char *);
113 113
114/* config.h globals */ 114/* config.h globals */
115extern char *utmp; 115extern char *utmp;