sys-file-reader: Fix confusion of types between size_t and unsigned int.