Fixed unused parameter warnings with main()

Changed declaration to main(void) where no parameters are needed.
Added reference to loc_id to remove unused variable warning