Commit 0e65dd77 authored by Felix Paul Kühne's avatar Felix Paul Kühne

src: fixed 2 errors detected by the clang static analyser

parent 44b30a30
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
# include <mach/mach_time.h> # include <mach/mach_time.h>
#endif #endif
#if !defined(HAVE_STRUCT_TIMESPEC) #if !defined(HAVE_STRUCT_TIMESPEC) && !defined(__APPLE__)
struct timespec struct timespec
{ {
time_t tv_sec; time_t tv_sec;
...@@ -71,7 +71,7 @@ struct timespec ...@@ -71,7 +71,7 @@ struct timespec
#endif #endif
#if defined(HAVE_NANOSLEEP) && !defined(HAVE_DECL_NANOSLEEP) #if defined(HAVE_NANOSLEEP) && !defined(HAVE_DECL_NANOSLEEP)
int nanosleep(struct timespec *, struct timespec *); int nanosleep(const struct timespec *, struct timespec *);
#endif #endif
#if !defined (_POSIX_CLOCK_SELECTION) #if !defined (_POSIX_CLOCK_SELECTION)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment