projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.14.tar.gz
[xscreensaver]
/
hacks
/
glx
/
boxed.c
diff --git
a/hacks/glx/boxed.c
b/hacks/glx/boxed.c
index 0575aefa1b00550a59c56fcc419b9aa593c291d8..238cb3c8f8dcba2d4b7323f4371054c61a5047e2 100644
(file)
--- a/
hacks/glx/boxed.c
+++ b/
hacks/glx/boxed.c
@@
-1,8
+1,7
@@
/* thebox --- 3D bouncing balls that explode */
/* thebox --- 3D bouncing balls that explode */
-#if
!defined( lint ) && !defined( SABER )
+#if
0
static const char sccsid[] = "@(#)boxed.c 0.9 01/09/26 xlockmore";
static const char sccsid[] = "@(#)boxed.c 0.9 01/09/26 xlockmore";
-
#endif
/*-
#endif
/*-
@@
-55,7
+54,7
@@
static const char sccsid[] = "@(#)boxed.c 0.9 01/09/26 xlockmore";
#undef countof
#define countof(x) (int)(sizeof((x))/sizeof((*x)))
#undef rnd
#undef countof
#define countof(x) (int)(sizeof((x))/sizeof((*x)))
#undef rnd
-#define rnd() (
((float)random()) / ((float)RAND_MAX * 2.0)
)
+#define rnd() (
frand(1.0)
)
/* #define DEF_PLANETARY "False"
/* #define DEF_PLANETARY "False"
@@
-1092,7
+1091,7
@@
pinit(ModeInfo * mi)
GL_RGB, GL_UNSIGNED_BYTE, gp->tex1);
if (i)
{
GL_RGB, GL_UNSIGNED_BYTE, gp->tex1);
if (i)
{
- const char *s = gluErrorString (i);
+ const char *s =
(char *)
gluErrorString (i);
fprintf (stderr, "%s: error mipmapping texture: %s\n",
progname, (s ? s : "(unknown)"));
exit (1);
fprintf (stderr, "%s: error mipmapping texture: %s\n",
progname, (s ? s : "(unknown)"));
exit (1);