From 2b6040818e35d57357226212c356ce370c5b5dd0 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 7 May 2005 22:42:14 +0000 Subject: use full prototypes --- src/cmd/astro/dist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cmd/astro') 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) -- cgit v1.2.3