diff options
Diffstat (limited to 'src/system')
-rw-r--r-- | src/system/dlt-system-filetransfer.c | 2 | ||||
-rw-r--r-- | src/system/dlt-system-watchdog.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/system/dlt-system-filetransfer.c b/src/system/dlt-system-filetransfer.c index d0ff7c7..64ac487 100644 --- a/src/system/dlt-system-filetransfer.c +++ b/src/system/dlt-system-filetransfer.c @@ -659,7 +659,7 @@ int wait_for_files(FiletransferOptions const *opts) struct inotify_event *ie = (struct inotify_event *)&buf[i]; if(ie->len > 0) { - if(ie->mask & IN_CLOSE_WRITE || ie->mask & IN_MOVED_TO) + if((ie->mask & IN_CLOSE_WRITE) || (ie->mask & IN_MOVED_TO)) { int j; for(j = 0;j < opts->Count;j++) diff --git a/src/system/dlt-system-watchdog.c b/src/system/dlt-system-watchdog.c index 5eef59b..a45ef30 100644 --- a/src/system/dlt-system-watchdog.c +++ b/src/system/dlt-system-watchdog.c @@ -66,7 +66,11 @@ void wait_period (PeriodicData *info) { unsigned long long missed; - read (info->timer_fd, &missed, sizeof (missed)); + if(read (info->timer_fd, &missed, sizeof (missed)) < 0) + { + DLT_LOG(watchdogContext, DLT_LOG_ERROR, + DLT_STRING("Could not read from timer file descriptor in watchdog.\n")); + } if (missed > 0) { |