summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-03-25 09:59:26 -0400
committerJoel Sherrill <joel@rtems.org>2021-05-28 12:15:50 -0500
commita187b092288efdb1c55f77c6f785486e64895084 (patch)
tree2231d7be444bb592c6a0ba428de05125886e20ad /cpukit
parent156896526f0579b5021e90f026286c62c2340efb (diff)
downloadrtems-a187b092288efdb1c55f77c6f785486e64895084.tar.bz2
gen_uuid.c: Ignore return values from fcntl()
CID 1049146: Unchecked return value from library in get_clock(). CID 1049147: Unchecked return value from library in get_random_fd(). Closes #4280
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libmisc/uuid/gen_uuid.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/libmisc/uuid/gen_uuid.c b/cpukit/libmisc/uuid/gen_uuid.c
index 3ca75a08ce..71b8a569bb 100644
--- a/cpukit/libmisc/uuid/gen_uuid.c
+++ b/cpukit/libmisc/uuid/gen_uuid.c
@@ -165,6 +165,9 @@ static int get_random_fd(void)
if (fd >= 0) {
i = fcntl(fd, F_GETFD);
if (i >= 0)
+ #ifdef __rtems__
+ (void)
+ #endif
fcntl(fd, F_SETFD, i | FD_CLOEXEC);
}
#endif
@@ -426,6 +429,9 @@ try_again:
}
rewind(state_f);
fl.l_type = F_UNLCK;
+ #ifdef __rtems__
+ (void)
+ #endif
fcntl(state_fd, F_SETLK, &fl);
}