MT#55283 use struct init

Change-Id: I45ad350d461ee0f54279d33bc565c6119f5fe391
pull/2055/head
Richard Fuchs 2 weeks ago
parent 84ca9e65ba
commit 91dde0ba03

@ -134,10 +134,12 @@ void uring_thread_init(void) {
if (ret)
die("io_uring init failed (%s)", strerror(-ret));
uring_methods.sendmsg = __uring_sendmsg;
uring_methods.thread_loop = __uring_thread_loop;
uring_methods.__alloc_req = __uring_alloc;
uring_methods.free = __uring_free;
uring_methods = (struct uring_methods) {
.sendmsg = __uring_sendmsg,
.thread_loop = __uring_thread_loop,
.__alloc_req = __uring_alloc,
.free = __uring_free,
};
}
void uring_thread_cleanup(void) {

Loading…
Cancel
Save