Moved typedef inside function scope.