diff options
| author | Vladimir Sementsov-Ogievskiy | 2018-10-03 19:02:28 +0200 |
|---|---|---|
| committer | Eric Blake | 2018-10-03 22:52:32 +0200 |
| commit | 7f7dfe2a53446072c136d349e3150c84d322b2bc (patch) | |
| tree | 8eae57a7bde08b41f89ab0b34a16b4e93afce041 /include | |
| parent | qemu-nbd: drop old-style negotiation (diff) | |
| download | qemu-7f7dfe2a53446072c136d349e3150c84d322b2bc.tar.gz qemu-7f7dfe2a53446072c136d349e3150c84d322b2bc.tar.xz qemu-7f7dfe2a53446072c136d349e3150c84d322b2bc.zip | |
nbd/server: drop old-style negotiation
After the previous commit, nbd_client_new's first parameter is always
NULL. Let's drop it with all corresponding old-style negotiation code
path which is unreachable now.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20181003170228.95973-3-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: re-wrap short line]
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/block/nbd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h index 4638c839f5..0129d1a4b4 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -308,8 +308,7 @@ void nbd_export_set_name(NBDExport *exp, const char *name); void nbd_export_set_description(NBDExport *exp, const char *description); void nbd_export_close_all(void); -void nbd_client_new(NBDExport *exp, - QIOChannelSocket *sioc, +void nbd_client_new(QIOChannelSocket *sioc, QCryptoTLSCreds *tlscreds, const char *tlsaclname, void (*close_fn)(NBDClient *, bool)); |
