X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fjuggle.c;h=8080ccb334b35ab485748b2950cef06aa37af662;hp=add8a7ddb84610473270db820767a42add840019;hb=96a411663168b0ba5432b407a83be55f3df0c802;hpb=c28aecf9fc41e3a03494bacf7279745425e2fa18 diff --git a/hacks/juggle.c b/hacks/juggle.c index add8a7dd..8080ccb3 100644 --- a/hacks/juggle.c +++ b/hacks/juggle.c @@ -1,9 +1,8 @@ /* -*- 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"; - #endif /*- @@ -1132,7 +1131,6 @@ init_juggle(ModeInfo * mi) } if (pattern == NULL && patternindex == NULL) { /* pattern list needs indexing */ - int i; int nelements = sizeof(portfolio)/sizeof(patternstruct); int maxballs; int numpat = 0; @@ -1475,7 +1473,13 @@ draw_juggle(ModeInfo * mi) { 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) {