#include <sys/param.h>
#include <sys/types.h>
-void microsleep(unsigned long usec)
+void microsleep(unsigned int usec)
{
struct timeval delay;
progname);
}
-unsigned long be2long(unsigned long *be) /* big-endian -> longword */
+unsigned int be2int(unsigned int *be) /* big-endian -> longword */
{
unsigned char *ptr = (unsigned char *)be;
return(rand() % max);
}
-unsigned int InitRND(long seed)
+unsigned int InitRND(int seed)
{
struct timeval current_time;
void HandleAnimation(int mode)
{
- static long animstart_delay = -1;
- static long animstart_delay_value = 0;
+ static int animstart_delay = -1;
+ static int animstart_delay_value = 0;
static BOOL anim_restart = TRUE;
static BOOL reset_delay = TRUE;
static int toon_nr = 0;
static delta_x = 0, delta_y = 0;
static int frame = 0, frame_step = 1;
static BOOL horiz_move, vert_move;
- static long anim_delay = 0;
+ static int anim_delay = 0;
static int anim_delay_value = 0;
struct AnimInfo *anim = &toon[toon_nr];
static int width,height;