Moved stat-buffer to avoid mixing code & definitions.

  This fixes a warning when compiling with `-pedantic`.
  Compilation fixup from clang.

  This is a trival coercion of return-types.