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
/
juggle.c
diff --git
a/hacks/juggle.c
b/hacks/juggle.c
index 2650ad27cf483ac2dafe6d76f2c1a93c354332b8..8080ccb334b35ab485748b2950cef06aa37af662 100644
(file)
--- a/
hacks/juggle.c
+++ b/
hacks/juggle.c
@@
-1,9
+1,8
@@
/* -*- Mode: C; tab-width: 4 -*- */
/* juggle */
/* -*- Mode: C; tab-width: 4 -*- */
/* juggle */
-#if
!defined( lint ) && !defined( SABER )
+#if
0
static const char sccsid[] = "@(#)juggle.c 5.00 2000/11/01 xlockmore";
static const char sccsid[] = "@(#)juggle.c 5.00 2000/11/01 xlockmore";
-
#endif
/*-
#endif
/*-
@@
-1474,7
+1473,13
@@
draw_juggle(ModeInfo * mi)
{
struct timeval tv;
{
struct timeval tv;
- (void)gettimeofday(&tv, NULL);
+# ifdef GETTIMEOFDAY_TWO_ARGS
+ struct timezone tzp;
+ gettimeofday(&tv, &tzp);
+# else
+ gettimeofday(&tv);
+# endif
+
sp->time = (int) ((tv.tv_sec - sp->begintime)*1000 + tv.tv_usec/1000);
}
for (traj = sp->head->next; traj != sp->head; traj = traj->next) {
sp->time = (int) ((tv.tv_sec - sp->begintime)*1000 + tv.tv_usec/1000);
}
for (traj = sp->head->next; traj != sp->head; traj = traj->next) {