projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix signedness compiler warnings.
[tinc]
/
src
/
event.c
diff --git
a/src/event.c
b/src/event.c
index
4eae34d
..
5cf8b48
100644
(file)
--- a/
src/event.c
+++ b/
src/event.c
@@
-1,7
+1,7
@@
/*
event.c -- event queue
/*
event.c -- event queue
- Copyright (C) 2002-200
3 Guus Sliepen <guus@sliepen.eu
.org>,
- 2002-200
3 Ivo Timmermans <ivo@o2w.nl
>
+ Copyright (C) 2002-200
5 Guus Sliepen <guus@tinc-vpn
.org>,
+ 2002-200
5 Ivo Timmermans <ivo@tinc-vpn.org
>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id
: event.c,v 1.1.4.9 2003/07/17 15:06:26 guus Exp
$
+ $Id$
*/
#include "system.h"
*/
#include "system.h"
@@
-32,7
+32,7
@@
extern time_t now;
int id;
int id;
-static int event_compare(
event_t *a,
event_t *b)
+static int event_compare(
const event_t *a, const
event_t *b)
{
if(a->time > b->time)
return 1;
{
if(a->time > b->time)
return 1;
@@
-61,7
+61,7
@@
event_t *new_event(void)
{
cp();
{
cp();
- return
(event_t *)
xmalloc_and_zero(sizeof(event_t));
+ return xmalloc_and_zero(sizeof(event_t));
}
void free_event(event_t *event)
}
void free_event(event_t *event)
@@
-93,7
+93,7
@@
event_t *get_expired_event(void)
cp();
if(event_tree->head) {
cp();
if(event_tree->head) {
- event =
(event_t *)
event_tree->head->data;
+ event = event_tree->head->data;
if(event->time < now) {
avl_delete(event_tree, event);
if(event->time < now) {
avl_delete(event_tree, event);