You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2023/09/24 22:08:55 UTC
[nuttx-apps] branch master updated: Fix drivertest_watchdog.c:207:30: error: 'struct wdg_state_s' has no member named 'infopath'
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 99a8c5937 Fix drivertest_watchdog.c:207:30: error: 'struct wdg_state_s' has no member named 'infopath'
99a8c5937 is described below
commit 99a8c5937c527bb159c85d7c21e1de82e4bbe035
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Sep 24 16:13:49 2023 +0800
Fix drivertest_watchdog.c:207:30: error: 'struct wdg_state_s' has no member named 'infopath'
Remove the unsupported -p option
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
testing/drivertest/drivertest_simple.c | 1 +
testing/drivertest/drivertest_watchdog.c | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/testing/drivertest/drivertest_simple.c b/testing/drivertest/drivertest_simple.c
index 25cee8f9b..0ba0a5db0 100644
--- a/testing/drivertest/drivertest_simple.c
+++ b/testing/drivertest/drivertest_simple.c
@@ -21,6 +21,7 @@
/****************************************************************************
* Included Files
****************************************************************************/
+
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
diff --git a/testing/drivertest/drivertest_watchdog.c b/testing/drivertest/drivertest_watchdog.c
index 1bd44b3f2..a4ffd7ddd 100644
--- a/testing/drivertest/drivertest_watchdog.c
+++ b/testing/drivertest/drivertest_watchdog.c
@@ -203,9 +203,6 @@ static void parse_commandline(FAR struct wdg_state_s *wdg_state, int argc,
strlcpy(wdg_state->devpath, optarg, sizeof(wdg_state->devpath));
break;
- case 'p':
- strlcpy(wdg_state->infopath, optarg,
- sizeof(wdg_state->infopath));
case 'r':
OPTARG_TO_VALUE(converted, uint32_t, 10);
if (converted < WDG_DEFAULT_TESTCASE ||