aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/astro/dist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/astro/dist.c')
-rw-r--r--src/cmd/astro/dist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/astro/dist.c b/src/cmd/astro/dist.c
index 3aec8752..91175a6f 100644
--- a/src/cmd/astro/dist.c
+++ b/src/cmd/astro/dist.c
@@ -192,7 +192,7 @@ event(char *format, char *arg1, char *arg2, double tim, int flag)
p->flag = flag;
}
-int evcomp();
+int evcomp(const void*, const void*);
void
evflush(void)
@@ -214,13 +214,13 @@ evflush(void)
}
int
-evcomp(void *a1, void *a2)
+evcomp(const void *a1, const void *a2)
{
double t1, t2;
Event *p1, *p2;
- p1 = a1;
- p2 = a2;
+ p1 = (Event*)a1;
+ p2 = (Event*)a2;
t1 = p1->tim;
t2 = p2->tim;
if(p1->flag & SIGNIF)