chiark
/
gitweb
/
~mdw
/
fwd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
faf9726
)
Fix stupidity.
author
mdw
<mdw>
Tue, 18 Oct 2005 16:12:35 +0000
(16:12 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 9 Mar 2006 20:13:57 +0000
(20:13 +0000)
blast.c
patch
|
blob
|
blame
|
history
diff --git
a/blast.c
b/blast.c
index c273a4156018e9add44d2e75b8e4802a1f581d89..2791cb1f98ed8dcad51f1e90d6adede60d3623d3 100644
(file)
--- a/
blast.c
+++ b/
blast.c
@@
-1,6
+1,7
@@
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
+#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-26,6
+27,7
@@
typedef struct blast {
sel_timer t;
} blast;
sel_timer t;
} blast;
+#define sin saddrin
static struct sockaddr_in sin;
static sel_state sel;
static struct timeval ctv = { 0, 500000 };
static struct sockaddr_in sin;
static sel_state sel;
static struct timeval ctv = { 0, 500000 };
@@
-94,8
+96,8
@@
static void timers(void)
sel_timer *t = sel.timers;
while (t) {
struct tab *q; for (q = tab; q->func != t->func; q++) ;
sel_timer *t = sel.timers;
while (t) {
struct tab *q; for (q = tab; q->func != t->func; q++) ;
- assert(t->prev->next == t);
- printf("%
i.%06i
%p %s\n", t->tv.tv_sec, t->tv.tv_usec, t->p, q->name);
+/* assert(t->prev->next == t); */
+ printf("%
lu.%06lu
%p %s\n", t->tv.tv_sec, t->tv.tv_usec, t->p, q->name);
assert(t != t->next);
t = t->next;
}
assert(t != t->next);
t = t->next;
}