null: make *impl_ private
authorTomohiro Kusumi <tkusumi@tuxera.com>
Mon, 15 Jan 2018 19:52:11 +0000 (21:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Jan 2018 15:32:37 +0000 (08:32 -0700)
This can/should be private, given struct is default public in C++.
The null ioengine only needs access to new'd NullData which
encapsulates malloc'd null_data *impl_.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/null.c

index 47f290548ceafb39763b9bfd5cf08a29aa7f2e06..cf1ee1f2e433cd92836725d991c849e70769a991 100644 (file)
@@ -213,6 +213,7 @@ struct NullData {
                return null_open(impl_, f);
        }
 
+private:
        struct null_data *impl_;
 };