Revision a885211e vnc-encoding-zlib.c

b/vnc-encoding-zlib.c
116 116
    return zstream->total_out - previous_out;
117 117
}
118 118

  
119
void vnc_zlib_send_framebuffer_update(VncState *vs, int x, int y, int w, int h)
119
int vnc_zlib_send_framebuffer_update(VncState *vs, int x, int y, int w, int h)
120 120
{
121 121
    int old_offset, new_offset, bytes_written;
122 122

  
......
132 132
    bytes_written = vnc_zlib_stop(vs);
133 133

  
134 134
    if (bytes_written == -1)
135
        return;
135
        return 0;
136 136

  
137 137
    // hack in the size
138 138
    new_offset = vs->output.offset;
139 139
    vs->output.offset = old_offset;
140 140
    vnc_write_u32(vs, bytes_written);
141 141
    vs->output.offset = new_offset;
142

  
143
    return 1;
142 144
}
143 145

  
144 146
void vnc_zlib_clear(VncState *vs)

Also available in: Unified diff