Correct some errors found in build testing using recent commits.

This commit is contained in:
Gregory Nutt 2018-09-15 12:47:54 -06:00
parent 53b7b41f90
commit b48f46f1c8
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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 */