C89 fix (as pointed out by Mike Ryan)