Renamed variable v_type to var_type so it no longer conflicts with the definition of an AIX system variable