chiark / gitweb /
Shadow disorder.dev
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 24 May 2008 16:18:08 +0000 (17:18 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 24 May 2008 16:18:08 +0000 (17:18 +0100)
lib/t-event.c
tests/aliases.py

index 91728330bc49290b9bf877fd400740d131ddb848..07f2c25c1b217203fde721d80954573c3b2f7784 100644 (file)
 
 #include <time.h>
 
-static ev_source *ev;
-
 static int run1, run2, run3;
 static ev_timeout_handle t1, t2, t3;
 
-static int callback1(ev_source attribute((unused)) *ev,
+static int callback1(ev_source *ev,
                     const struct timeval attribute((unused)) *now,
                     void attribute((unused)) *u) {
   run1 = 1;
@@ -51,6 +49,7 @@ static int callback3(ev_source attribute((unused)) *ev,
 
 static void test_event(void) {
   struct timeval w;
+  ev_source *ev;
 
   ev = ev_new();
   w.tv_sec = time(0) + 2;
index 6ff74d8ef4b1e6b7e5b2865eca0702deebfba887..7b4bf4c2b954437cac87d63103a43daadeb07158 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python -u
+#! /usr/bin/env python
 #
 # This file is part of DisOrder.
 # Copyright (C) 2008 Richard Kettlewell