projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.36.tar.gz
[xscreensaver]
/
hacks
/
glx
/
hydrostat.c
diff --git
a/hacks/glx/hydrostat.c
b/hacks/glx/hydrostat.c
index ea3de9dfb7df595d2629166c5d34d158128ce56e..85aea634cc5ba141682f5f048dc5293fa36b5d80 100644
(file)
--- a/
hacks/glx/hydrostat.c
+++ b/
hacks/glx/hydrostat.c
@@
-508,10
+508,10
@@
make_squid (ModeInfo *mi, int which)
static int
cmp_squid (const void *aa, const void *bb)
{
static int
cmp_squid (const void *aa, const void *bb)
{
-
const squid *a = (squid *)
aa;
-
const squid *b = (squid *)
bb;
- return ((int) (
b
->pos.y * 10000) -
- (int) (
a
->pos.y * 10000));
+
squid * const *a =
aa;
+
squid * const *b =
bb;
+ return ((int) (
(*b)
->pos.y * 10000) -
+ (int) (
(*a)
->pos.y * 10000));
}
}