]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/app/spdk_tgt/spdk_tgt.c
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / app / spdk_tgt / spdk_tgt.c
index 1c93f58a817d72bd9dd443fe79ff56cd25d23370..2dde2f47f3af72e87efa4caf16c9784b1ea1775e 100644 (file)
@@ -77,7 +77,7 @@ spdk_tgt_save_pid(const char *pid_path)
 }
 
 
-static void
+static int
 spdk_tgt_parse_arg(int ch, char *arg)
 {
        switch (ch) {
@@ -89,11 +89,14 @@ spdk_tgt_parse_arg(int ch, char *arg)
                spdk_vhost_set_socket_path(arg);
                break;
 #endif
+       default:
+               return -EINVAL;
        }
+       return 0;
 }
 
 static void
-spdk_tgt_started(void *arg1, void *arg2)
+spdk_tgt_started(void *arg1)
 {
        if (g_pid_path) {
                spdk_tgt_save_pid(g_pid_path);
@@ -119,7 +122,7 @@ main(int argc, char **argv)
                return rc;
        }
 
-       rc = spdk_app_start(&opts, spdk_tgt_started, NULL, NULL);
+       rc = spdk_app_start(&opts, spdk_tgt_started, NULL);
        spdk_app_fini();
 
        return rc;