mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[terminal] const in hard_write
This commit is contained in:
parent
52d871bf8b
commit
84f39d8f83
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user