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 | fix: correctly encode mouse buttons >= 8 in X10 and SGR mode (diff) | |
| download | st-4536f46cfff50c66a115755def0155d8e246b02f.tar.gz st-4536f46cfff50c66a115755def0155d8e246b02f.zip | |
Mild const-correctness improvements.
Only touch a few things, the main focus is to
improve code readability.
Diffstat (limited to '')
| -rw-r--r-- | st.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -91,7 +91,7 @@ void tnew(int, int); | |||
| 91 | void tresize(int, int); | 91 | void tresize(int, int); |
| 92 | void tsetdirtattr(int); | 92 | void tsetdirtattr(int); |
| 93 | void ttyhangup(void); | 93 | void ttyhangup(void); |
| 94 | int ttynew(char *, char *, char *, char **); | 94 | int ttynew(const char *, char *, const char *, char **); |
| 95 | size_t ttyread(void); | 95 | size_t ttyread(void); |
| 96 | void ttyresize(int, int); | 96 | void ttyresize(int, int); |
| 97 | void ttywrite(const char *, size_t, int); | 97 | void ttywrite(const char *, size_t, int); |
| @@ -109,7 +109,7 @@ size_t utf8encode(Rune, char *); | |||
| 109 | 109 | ||
| 110 | void *xmalloc(size_t); | 110 | void *xmalloc(size_t); |
| 111 | void *xrealloc(void *, size_t); | 111 | void *xrealloc(void *, size_t); |
| 112 | char *xstrdup(char *); | 112 | char *xstrdup(const char *); |
| 113 | 113 | ||
| 114 | /* config.h globals */ | 114 | /* config.h globals */ |
| 115 | extern char *utmp; | 115 | extern char *utmp; |
