Mild const-correctness improvements.

Only touch a few things, the main focus is to
improve code readability.
This commit is contained in:
Markus F.X.J. Oberhumer
2021-03-28 21:16:59 +02:00
committed by Hiltjo Posthuma
parent 9e68fdbcdb
commit 4536f46cff
3 changed files with 28 additions and 26 deletions

4
st.h
View File

@ -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;