diff mbox series

[v2,3/3] nbd: Minor style fixes

Message ID 20240802014824.1906798-8-eblake@redhat.com
State New
Headers show
Series Avoid NBD crash on nbd-server-stop | expand

Commit Message

Eric Blake Aug. 2, 2024, 1:32 a.m. UTC
Touch up a comment with the wrong type name, and an over-long line,
both noticed while working on the previous patches.

Signed-off-by: Eric Blake <eblake@redhat.com>
---
 nbd/server.c | 2 +-
 qemu-nbd.c   | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/nbd/server.c b/nbd/server.c
index 7c37d9753f0..3debc416dd0 100644
--- a/nbd/server.c
+++ b/nbd/server.c
@@ -1973,7 +1973,7 @@  static void nbd_export_request_shutdown(BlockExport *blk_exp)

     blk_exp_ref(&exp->common);
     /*
-     * TODO: Should we expand QMP NbdServerRemoveNode enum to allow a
+     * TODO: Should we expand QMP BlockExportRemoveMode enum to allow a
      * close mode that stops advertising the export to new clients but
      * still permits existing clients to run to completion? Because of
      * that possibility, nbd_export_close() can be called more than
diff --git a/qemu-nbd.c b/qemu-nbd.c
index 3ad50eec18e..c0bd16217cd 100644
--- a/qemu-nbd.c
+++ b/qemu-nbd.c
@@ -589,7 +589,8 @@  int main(int argc, char **argv)
     pthread_t client_thread;
     const char *fmt = NULL;
     Error *local_err = NULL;
-    BlockdevDetectZeroesOptions detect_zeroes = BLOCKDEV_DETECT_ZEROES_OPTIONS_OFF;
+    BlockdevDetectZeroesOptions detect_zeroes =
+        BLOCKDEV_DETECT_ZEROES_OPTIONS_OFF;
     QDict *options = NULL;
     const char *export_name = NULL; /* defaults to "" later for server mode */
     const char *export_description = NULL;