26 lines
933 B
Diff
26 lines
933 B
Diff
|
From fab3ef5e63e1ad61d03b1230e8f900bf1279cc81 Mon Sep 17 00:00:00 2001
|
||
|
From: Bin Liu <bliu@suse.com>
|
||
|
Date: Thu, 19 Apr 2018 16:52:27 +0800
|
||
|
Subject: [PATCH] qdevice-net-instance.c: optarg should be str
|
||
|
|
||
|
---
|
||
|
qdevices/qdevice-net-instance.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/qdevices/qdevice-net-instance.c b/qdevices/qdevice-net-instance.c
|
||
|
index 87cf3ee0..a3231cd5 100644
|
||
|
--- a/qdevices/qdevice-net-instance.c
|
||
|
+++ b/qdevices/qdevice-net-instance.c
|
||
|
@@ -273,7 +273,7 @@ qdevice_net_instance_init_from_cmap(struct qdevice_instance *instance)
|
||
|
host_addr = str;
|
||
|
|
||
|
if (cmap_get_string(cmap_handle, "quorum.device.net.port", &str) == CS_OK) {
|
||
|
- if (utils_strtonum(optarg, 1, UINT16_MAX, &lli) == -1) {
|
||
|
+ if (utils_strtonum(str, 1, UINT16_MAX, &lli) == -1) {
|
||
|
qdevice_log(LOG_ERR, "quorum.device.net.port must be in range 1-%u", UINT16_MAX);
|
||
|
free(str);
|
||
|
goto error_free_host_addr;
|
||
|
--
|
||
|
2.13.6
|
||
|
|