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 /st.h | |
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 'st.h')
-rw-r--r-- | st.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |