Avoid declaration after statement
[idzebra-moved-to-github.git] / util / tstflock.c
index b628968..314fb06 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (C) 1995-2005, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: tstflock.c,v 1.3 2006-03-23 17:32:03 adam Exp $
+ * $Id: tstflock.c,v 1.5 2006-05-03 09:42:39 marc Exp $
  */
 
 #include <yaz/test.h>
@@ -75,9 +75,8 @@ static void tst_win32()
             0,                 /* use default creation flags */
             &dwThreadId[i]);   /* returns the thread identifier */
     }
-    WaitForMultipleObjects(NUM_THREADS, handles, TRUE, INFINITE);
     /* join */
-    *seqp++ = '\0';
+    WaitForMultipleObjects(NUM_THREADS, handles, TRUE, INFINITE);
 }
 #endif
 
@@ -91,7 +90,6 @@ static void tst_pthread()
 
     for (i = 0; i<NUM_THREADS; i++)
         pthread_join(child_thread[i], 0);
-    *seqp++ = '\0';
 }
 #endif
 
@@ -114,11 +112,5 @@ int main(int argc, char **argv)
 #endif
     YAZ_CHECK_TERM;
 }
-/*
- * Local variables:
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * End:
- * vim: shiftwidth=4 tabstop=8 expandtab
- */
+