static void buffer_reserve(Buffer *buffer, size_t len)

{

    if ((buffer->capacity - buffer->offset) < len) {

	buffer->capacity += (len + 1024);

	buffer->buffer = qemu_realloc(buffer->buffer, buffer->capacity);

	if (buffer->buffer == NULL) {

	    fprintf(stderr, "vnc: out of memory\n");

	    exit(1);

	}

    }

}

static void buffer_reserve(Buffer *buffer, size_t len)

{

    if ((buffer->capacity - buffer->offset) < len) {

	buffer->capacity += (len + 1024);

	buffer->buffer = qemu_realloc(buffer->buffer, buffer->capacity);

	if (buffer->buffer == NULL) {

	    fprintf(stderr, "vnc: out of memory\n");

	    exit(1);

	}

    }

}

static void buffer_reserve(Buffer *buffer, size_t len)
static void FUNC_0(Buffer *VAR_0, size_t VAR_1)

{

    if ((VAR_0->capacity - VAR_0->offset) < VAR_1) {

	VAR_0->capacity += (VAR_1 + 1024);

	VAR_0->VAR_0 = qemu_realloc(VAR_0->VAR_0, VAR_0->capacity);

	if (VAR_0->VAR_0 == NULL) {

	    fprintf(stderr, "vnc: out of memory\n");

	    exit(1);

	}

    }

}

static void FUNC_0(Buffer *VAR_0, size_t VAR_1)
{ if ((VAR_0->capacity - VAR_0->offset) < VAR_1) { VAR_0->capacity += (VAR_1 + 1024); VAR_0->VAR_0 = qemu_realloc(VAR_0->VAR_0, VAR_0->capacity); if (VAR_0->VAR_0 == NULL) { fprintf(stderr, "vnc: out of memory\n"); exit(1); } } }