Fixed function parameters in scanner.c to include passing token