From 5326b2e9e1327aea4b76d368f8a62785ae4be8f9 Mon Sep 17 00:00:00 2001 From: alvarofe Date: Thu, 6 Apr 2017 00:24:49 +0200 Subject: [PATCH] Fix warning in io_null.c I overlooked and did not notice that master and siol have different signature for the same function. --- libr/io/p/io_null.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/io/p/io_null.c b/libr/io/p/io_null.c index bbe6cda001..0b2c2ebd9b 100644 --- a/libr/io/p/io_null.c +++ b/libr/io/p/io_null.c @@ -100,7 +100,7 @@ static RIODesc* __open(RIO* io, const char* pathname, int rw, int mode) { null = R_NEW0 (RIONull); null->size = r_num_math (NULL, pathname + 7) + 1; //??? null->offset = 0LL; - return r_io_desc_new (io, &r_io_plugin_null, pathname, rw, mode, null); + return r_io_desc_new (&r_io_plugin_null, -2, pathname, rw, mode, null); } } return NULL;