Skip to content

Commit 372250a

Browse files
committed
simplify signature of own later2()
1 parent fb14833 commit 372250a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/aio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static void request_complete(void *arg) {
233233
raio->result = res - !res;
234234

235235
if (saio->data != NULL)
236-
later2(raio_invoke_cb, saio->data, 0);
236+
later2(raio_invoke_cb, saio->data);
237237

238238
}
239239

@@ -256,7 +256,7 @@ static void request_complete_signal(void *arg) {
256256
nng_mtx_unlock(mtx);
257257

258258
if (saio->data != NULL)
259-
later2(raio_invoke_cb, saio->data, 0);
259+
later2(raio_invoke_cb, saio->data);
260260

261261
}
262262

src/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ SEXP nano_precious;
5555

5656
later_fun eln2;
5757

58-
void later2(void (*fun)(void *), void *data, double secs) {
59-
eln2(fun, data, secs, 0);
58+
void later2(void (*fun)(void *), void *data) {
59+
eln2(fun, data, 0, 0);
6060
}
6161

6262
static void RegisterSymbols(void) {

src/nanonext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ typedef struct nano_buf_s {
177177
} nano_buf;
178178

179179
typedef void (*later_fun)(void (*)(void *), void *, double, int);
180-
extern void later2(void (*)(void *), void *, double);
180+
extern void later2(void (*)(void *), void *);
181181

182182
SEXP nano_PreserveObject(SEXP);
183183
void nano_ReleaseObject(SEXP);

0 commit comments

Comments
 (0)