[vlc-commits] commit: src: fixed 2 errors detected by the clang static analyser ( =?UTF-8?Q?Felix=20Paul=20K=C3=BChne=20?=)

git at videolan.org git at videolan.org
Tue Dec 28 14:25:43 CET 2010


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Dec  4 17:17:37 2010 +0100| [0e65dd7707b32d702dcf1f8ad74b641f9b6bb761] | committer: Felix Paul Kühne 

src: fixed 2 errors detected by the clang static analyser

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e65dd7707b32d702dcf1f8ad74b641f9b6bb761
---

 src/misc/mtime.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/mtime.c b/src/misc/mtime.c
index 115dbe9..30c7a26 100644
--- a/src/misc/mtime.c
+++ b/src/misc/mtime.c
@@ -62,7 +62,7 @@
 #   include <mach/mach_time.h>
 #endif
 
-#if !defined(HAVE_STRUCT_TIMESPEC)
+#if !defined(HAVE_STRUCT_TIMESPEC) && !defined(__APPLE__)
 struct timespec
 {
     time_t  tv_sec;
@@ -71,7 +71,7 @@ struct timespec
 #endif
 
 #if defined(HAVE_NANOSLEEP) && !defined(HAVE_DECL_NANOSLEEP)
-int nanosleep(struct timespec *, struct timespec *);
+int nanosleep(const struct timespec *, struct timespec *);
 #endif
 
 #if !defined (_POSIX_CLOCK_SELECTION)



More information about the vlc-commits mailing list