Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
(wip) Move the MCed public API in the same file
[simgrid.git] / buildtools / Cmake / test_prog / prog_mutex_timedlock.c
index c3eb72d..60dd8fe 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010-2011, 2013-2014. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -6,9 +6,10 @@
 
 #include <pthread.h>
 
-void main (void)
+int main(void)
 {
-       pthread_mutex_t s;
-       const struct timespec t;
-       sem_timedlock(&s, &t);
+  pthread_mutex_t s;
+  const struct timespec t;
+  sem_timedlock(&s, &t);
+  return 0;
 }