cleanup cmp_notification
This commit is contained in:
parent
ba09fa21f9
commit
51b2cb9d52
7
dunst.c
7
dunst.c
@ -125,13 +125,6 @@ int cmp_notification(const void *va, const void *vb)
|
|||||||
if (!sort)
|
if (!sort)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (a == NULL && b == NULL)
|
|
||||||
return 1;
|
|
||||||
else if (a == NULL)
|
|
||||||
return 1;
|
|
||||||
else if (b == NULL)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if (a->urgency != b->urgency) {
|
if (a->urgency != b->urgency) {
|
||||||
return b->urgency - a->urgency;
|
return b->urgency - a->urgency;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user