From b48f46f1c8ca3cd56b9cd5e261aa2cc6f6a37ed3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 15 Sep 2018 12:47:54 -0600 Subject: [PATCH] Correct some errors found in build testing using recent commits. --- configs/photon/src/stm32_wdt.c | 4 ++-- drivers/bch/bchdev_unregister.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/photon/src/stm32_wdt.c b/configs/photon/src/stm32_wdt.c index af37881182..cc1359909f 100644 --- a/configs/photon/src/stm32_wdt.c +++ b/configs/photon/src/stm32_wdt.c @@ -137,8 +137,8 @@ int photon_watchdog_initialize(void) #ifdef CONFIG_PHOTON_IWDG wdinfo("Timeout = %d.\n", CONFIG_PHOTON_IWDG_TIMEOUT); - ret = ioctl(&filestruct, WDIOC_SETTIMEOUT, - (unsigned long)CONFIG_PHOTON_IWDG_TIMEOUT); + ret = file_ioctl(&filestruct, WDIOC_SETTIMEOUT, + (unsigned long)CONFIG_PHOTON_IWDG_TIMEOUT); #else # error "No watchdog configured" #endif diff --git a/drivers/bch/bchdev_unregister.c b/drivers/bch/bchdev_unregister.c index c9697d804a..5efe1b2020 100644 --- a/drivers/bch/bchdev_unregister.c +++ b/drivers/bch/bchdev_unregister.c @@ -73,7 +73,7 @@ int bchdev_unregister(FAR const char *chardev) { FAR struct bchlib_s *bch; - FAR struct file *filestruct; + FAR struct file filestruct; int ret; /* Sanity check */