The function had just one caller and a name that didn't explain much. Let's make it static and rename for clarity. While at it, the only caller was not doing error handling correctly — the function would potentially return a negative error value which wasn't handled. In practice this couldn't happen, but let's remove this ambiguity.