improve error handling some more

This commit is contained in:
Wim Taymans 2019-06-20 11:04:34 +02:00
parent d1241e2c1c
commit a212d2f9ed
30 changed files with 393 additions and 312 deletions

View file

@ -195,7 +195,7 @@ static int refill_buffer(struct pw_protocol_native_connection *conn, struct buff
return 0;
/* ERRORS */
recv_error:
recv_error:
pw_log_error("could not recvmsg on fd %d: %s", conn->fd, strerror(errno));
return -errno;
}
@ -245,7 +245,7 @@ struct pw_protocol_native_connection *pw_protocol_native_connection_new(struct p
return this;
no_mem:
no_mem:
free(impl->out.buffer_data);
free(impl->in.buffer_data);
free(impl);
@ -514,7 +514,7 @@ int pw_protocol_native_connection_flush(struct pw_protocol_native_connection *co
return 0;
/* ERRORS */
send_error:
send_error:
res = -errno;
pw_log_error("could not sendmsg: %s", strerror(errno));
return res;