Skip to content

Commit f416b60

Browse files
committed
optimizes struct alignment and corrects one
1 parent d471ae3 commit f416b60

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: nanonext
22
Type: Package
33
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
4-
Version: 1.1.1.9013
4+
Version: 1.1.1.9014
55
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
66
a socket library implementing 'Scalability Protocols', a reliable,
77
high-performance standard for common communications patterns including

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nanonext 1.1.1.9013 (development)
1+
# nanonext 1.1.1.9014 (development)
22

33
#### New Features
44

src/nanonext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ typedef enum nano_aio_typ {
169169

170170
typedef struct nano_aio_s {
171171
nng_aio *aio;
172-
int mode;
173-
int result;
174172
void *data;
175173
void *next;
174+
int mode;
175+
int result;
176176
nano_aio_typ type;
177177
} nano_aio;
178178

src/sync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static void request_complete_signal(void *arg) {
9090

9191
static void sendaio_complete(void *arg) {
9292

93-
nng_aio *aio = (nng_aio *) arg;
93+
nng_aio *aio = ((nano_aio *) arg)->aio;
9494
if (nng_aio_result(aio))
9595
nng_msg_free(nng_aio_get_msg(aio));
9696

0 commit comments

Comments
 (0)