From 163c39c9f46ab5895c32dbc3237bc13856b0b6db Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Sun, 28 Mar 2021 21:16:59 +0200 Subject: Mild const-correctness improvements. Only touch a few things, the main focus is to improve code readability. --- st.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'st.h') diff --git a/st.h b/st.h index 7ea2fd3..99c14f2 100644 --- a/st.h +++ b/st.h @@ -93,7 +93,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); @@ -111,7 +111,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; -- cgit v1.2.3