aboutsummaryrefslogtreecommitdiffstats
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-4536f46cfff50c66a115755def0155d8e246b02f.tar.gz
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);
void tresize(int, int);
void tsetdirtattr(int);
void ttyhangup(void);
-int ttynew(char *, char *, char *, char **);
+int ttynew(const char *, char *, const char *, char **);
size_t ttyread(void);
void ttyresize(int, int);
void ttywrite(const char *, size_t, int);
@@ -109,7 +109,7 @@ size_t utf8encode(Rune, char *);
void *xmalloc(size_t);
void *xrealloc(void *, size_t);
-char *xstrdup(char *);
+char *xstrdup(const char *);
/* config.h globals */
extern char *utmp;
remember that computers suck.