1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[terminal] const in hard_write

This commit is contained in:
Witold Filipczyk 2022-02-16 20:49:21 +01:00
parent 52d871bf8b
commit 84f39d8f83
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ hw_debug_write(char *data, int w)
ssize_t
hard_write(int fd, char *data, size_t datalen)
hard_write(int fd, const char *data, size_t datalen)
{
ssize_t total = datalen;

View File

@ -5,7 +5,7 @@
extern "C" {
#endif
ssize_t hard_write(int fd, char *data, size_t datalen);
ssize_t hard_write(int fd, const char *data, size_t datalen);
ssize_t hard_read(int fd, char *data, size_t datalen);
#ifdef __cplusplus

View File

@ -567,7 +567,7 @@ dispatch_special(const char *text)
}
static void inline
safe_hard_write(int fd, char *buf, int len)
safe_hard_write(int fd, const char *buf, int len)
{
if (is_blocked()) return;