blob: 074f0fe7bbc52f32efc7e5a1b55f1b787d6767b6 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 2b7d6cf62296ff4e25e5ad909aa39a257bf9ff78 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 31 Aug 2022 19:37:35 -0700
4Subject: [PATCH] wfa_cmdproc: Store return value into location
5
6Fixes
7| wfa_cmdproc.c:100:20: error: incompatible integer to pointer conversion assigning to 'int *' from 'int' [-Wint-conversion]
8| paramValue = atoi(str);
9| ^ ~~~~~~~~~
10
11Upstream-Status: Submitted [https://github.com/Wi-FiTestSuite/Wi-FiTestSuite-Linux-DUT/pull/57]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 lib/wfa_cmdproc.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/lib/wfa_cmdproc.c b/lib/wfa_cmdproc.c
18index 9f5fd16..49a3f16 100644
19--- a/lib/wfa_cmdproc.c
20+++ b/lib/wfa_cmdproc.c
21@@ -97,7 +97,7 @@ int getParamValueInt(char *pcmdStr, char *pParam, int *paramValue)
22 if(strcasecmp(pcmdStr, pParam) == 0)
23 {
24 str = strtok_r(NULL, ",", &pcmdStr);
25- paramValue = atoi(str);
26+ *paramValue = atoi(str);
27 return 0;
28 }
29 return -1;
30--
312.37.3
32