aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/astro
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-05-07 22:42:14 +0000
committerrsc <devnull@localhost>2005-05-07 22:42:14 +0000
commit2b6040818e35d57357226212c356ce370c5b5dd0 (patch)
treea08c0b51770e99dbc80a768f88d6682838c2d77f /src/cmd/astro
parentbb0266fe6137ecd81eea1c74e34723c5a1bc4caf (diff)
downloadplan9port-2b6040818e35d57357226212c356ce370c5b5dd0.tar.gz
plan9port-2b6040818e35d57357226212c356ce370c5b5dd0.tar.bz2
plan9port-2b6040818e35d57357226212c356ce370c5b5dd0.zip
use full prototypes
Diffstat (limited to 'src/cmd/astro')
-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)