Changing old SunOS code to new style