diff options
author | Markus F.X.J. Oberhumer <markus@oberhumer.com> | 2021-03-28 21:16:59 +0200 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-01-12 08:20:20 +0530 |
commit | 163c39c9f46ab5895c32dbc3237bc13856b0b6db (patch) | |
tree | 3c1b24e6d1dc2d4c93b7a1e8536e184f8624e127 /st.h | |
parent | b2617f7b7d70015dca3e7856299de6fae5232cc5 (diff) |
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
@@ -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; |