aboutsummaryrefslogtreecommitdiff
path: root/compat/imsg-buffer.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-10-07 09:39:43 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-10-07 09:39:43 +0100
commit991d5a9c74f658225cc82e0b08d168c092eefdbe (patch)
tree329794ec9c4ef869d5078e2294813d4a820da2bc /compat/imsg-buffer.c
parent57168f3f5935b0608484c5ed9ae6d41d3ca33da4 (diff)
downloadrtmux-991d5a9c74f658225cc82e0b08d168c092eefdbe.tar.gz
rtmux-991d5a9c74f658225cc82e0b08d168c092eefdbe.tar.bz2
rtmux-991d5a9c74f658225cc82e0b08d168c092eefdbe.zip
Add compat for getdtablesize, GitHub issue 2406.
Diffstat (limited to 'compat/imsg-buffer.c')
-rw-r--r--compat/imsg-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/imsg-buffer.c b/compat/imsg-buffer.c
index 814591f4..67d4c705 100644
--- a/compat/imsg-buffer.c
+++ b/compat/imsg-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg-buffer.c,v 1.11 2017/12/14 09:27:44 kettenis Exp $ */
+/* $OpenBSD: imsg-buffer.c,v 1.12 2019/01/20 02:50:03 bcook Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -70,7 +70,7 @@ ibuf_dynamic(size_t len, size_t max)
static int
ibuf_realloc(struct ibuf *buf, size_t len)
{
- u_char *b;
+ unsigned char *b;
/* on static buffers max is eq size and so the following fails */
if (buf->wpos + len > buf->max) {