aboutsummaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
authorMarkus F.X.J. Oberhumer <markus@oberhumer.com>2021-03-28 21:16:59 +0200
committersinanmohd <pcmsinan@gmail.com>2023-01-12 08:20:20 +0530
commit163c39c9f46ab5895c32dbc3237bc13856b0b6db (patch)
tree3c1b24e6d1dc2d4c93b7a1e8536e184f8624e127 /st.h
parentb2617f7b7d70015dca3e7856299de6fae5232cc5 (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.h4
1 files changed, 2 insertions, 2 deletions
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;