get rid of warning about wrong fp signature
This commit is contained in:
parent
06c08f112e
commit
3f66ea2932
10
dunst.c
10
dunst.c
@ -114,12 +114,14 @@ void hide_win(void);
|
||||
void move_all_to_history(void);
|
||||
void print_version(void);
|
||||
|
||||
int cmp_notification(notification * a, notification * b)
|
||||
int cmp_notification(void * a, void * b)
|
||||
{
|
||||
if (a->urgency != b->urgency) {
|
||||
return a->urgency - b->urgency;
|
||||
notification *na = (notification *) a;
|
||||
notification *nb = (notification *) b;
|
||||
if (na->urgency != nb->urgency) {
|
||||
return na->urgency - nb->urgency;
|
||||
} else {
|
||||
return b->timestamp - a->timestamp;
|
||||
return nb->timestamp - na->timestamp;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user