X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Frbug%2Frbug_connection.c;h=152226f84e2badc994248a76aa01a55b33c826db;hb=b46a9c570f431d3953a3ba31ffe76ad17568e522;hp=52acb700af9575cfc361695e53f6ba060ac0825c;hpb=ee98ae5a29ca870149c4a0d2a8f25f55e0fd333a;p=mesa.git diff --git a/src/gallium/auxiliary/rbug/rbug_connection.c b/src/gallium/auxiliary/rbug/rbug_connection.c index 52acb700af9..152226f84e2 100644 --- a/src/gallium/auxiliary/rbug/rbug_connection.c +++ b/src/gallium/auxiliary/rbug/rbug_connection.c @@ -22,8 +22,8 @@ * USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include "rbug/rbug.h" -#include "rbug/rbug_internal.h" +#include "rbug.h" +#include "rbug_internal.h" #include "util/u_network.h" @@ -87,6 +87,7 @@ rbug_get_message(struct rbug_connection *c, uint32_t *serial) if (!data) { return NULL; } + data->opcode = 0; do { uint8_t *ptr = ((uint8_t*)data) + read; @@ -151,7 +152,7 @@ rbug_connection_write(struct rbug_connection *c, void *to, uint32_t size) /** * Internal function used by rbug_send_* functions. * - * Finish writeing data to the socket. + * Finish writing data to the socket. * Ups the send_serial and sets the serial argument if supplied. */ int rbug_connection_send_finish(struct rbug_connection *c, uint32_t *serial)