summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2020-09-10 15:36:38 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2020-09-14 14:22:51 +0000
commita699974a698fdc15a5015dfe53b92055dc74dadd (patch)
treeffd31bedaccf8e7d80f984cde750d92754a0e752
parent84a4cf76219b6187fc625740d1a1ebbe40e9f22c (diff)
nfs: Use static api to set static data in dict
fixes: #1477 Change-Id: I8b9f76887f4617f82d09291205e28e3fb5ddc8e0 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com>
-rw-r--r--xlators/nfs/server/src/acl3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/acl3.c b/xlators/nfs/server/src/acl3.c
index 3745188..7e3bbf1 100644
--- a/xlators/nfs/server/src/acl3.c
+++ b/xlators/nfs/server/src/acl3.c
@@ -753,8 +753,7 @@ acl3svc_init(xlator_t *nfsx)
goto err;
}
- ret = dict_set_dynstr(options, "transport.socket.listen-port",
- GF_ACL3_PORT);
+ ret = dict_set_str(options, "transport.socket.listen-port", GF_ACL3_PORT);
if (ret == -1)
goto err;
ret = dict_set_str(options, "transport-type", "socket");