diff options
Diffstat (limited to 'lib/security.c')
-rw-r--r-- | lib/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/security.c b/lib/security.c index 5aa6ebfb5..cd644e596 100644 --- a/lib/security.c +++ b/lib/security.c @@ -129,9 +129,9 @@ block_read(int fd, void *buf, size_t len) } static int -block_write(int fd, void *buf, size_t len) +block_write(int fd, const void *buf, size_t len) { - unsigned char *p = buf; + const unsigned char *p = buf; int b; while(len) { b = write(fd, p, len); |