view->update_context = 0;
view->auto_goto = 0;
view->auto_going = 0;
- view->auto_x_goal = view->auto_x_goal = 0;
+ view->auto_x_goal = view->auto_y_goal = 0;
view->auto_speed = 75;
view->follow = NULL;
view->sound = 1;
}
view->data = (unsigned char *)shmat(view->shminfo->shmid, 0, 0);
- if ((int)view->data == -1) {
+ if ((char*)view->data == (char*)-1) {
perror("shmat");
fprintf(stderr,
"Darn, Micropolis can't find any memory to share with display \"%s\".\n",