diff options
author | Ed Schouten <ed@nuxi.nl> | 2015-08-25 15:24:39 +0200 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2015-08-25 19:15:50 +0300 |
commit | fd36647af1f0337add3031c1a7f95354a4bb2828 (patch) | |
tree | 609a837ddb205c59d785bfdfc9d208332582ee08 /buffer.c | |
parent | 193c7de505039750f973cd2a73c57677e884de9e (diff) | |
download | libevent-fd36647af1f0337add3031c1a7f95354a4bb2828.tar.gz |
Don't use BSD u_* types.
These types are not part of POSIX. As we only use them in a small number
of places, we'd better replace them by C standard types. This makes a
larger part of the code build for CloudABI.
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -184,7 +184,7 @@ evbuffer_chain_new(size_t size) /* this way we can manipulate the buffer to different addresses, * which is required for mmap for example. */ - chain->buffer = EVBUFFER_CHAIN_EXTRA(u_char, chain); + chain->buffer = EVBUFFER_CHAIN_EXTRA(unsigned char, chain); chain->refcnt = 1; @@ -2909,7 +2909,7 @@ evbuffer_add_reference(struct evbuffer *outbuf, if (!chain) return (-1); chain->flags |= EVBUFFER_REFERENCE | EVBUFFER_IMMUTABLE; - chain->buffer = (u_char *)data; + chain->buffer = (unsigned char *)data; chain->buffer_len = datlen; chain->off = datlen; |