1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 15:12:30 +02:00

Match function definition and declaration arguments.

This commit is contained in:
Guillaume Chatelet 2018-06-20 09:18:57 +02:00
parent 9f9a8d4b6e
commit 26133d3b62
2 changed files with 6 additions and 5 deletions

View File

@ -61,7 +61,8 @@ bool CpuFeatures_StringView_StartsWith(const StringView a, const StringView b);
// Removes count characters from the beginning of view or kEmptyStringView if
// count if greater than view.size.
StringView CpuFeatures_StringView_PopFront(const StringView view, size_t count);
StringView CpuFeatures_StringView_PopFront(const StringView str_view,
size_t count);
// Removes count characters from the end of view or kEmptyStringView if count if
// greater than view.size.
@ -70,7 +71,7 @@ StringView CpuFeatures_StringView_PopBack(const StringView str_view,
// Keeps the count first characters of view or view if count if greater than
// view.size.
StringView CpuFeatures_StringView_KeepFront(const StringView view,
StringView CpuFeatures_StringView_KeepFront(const StringView str_view,
size_t count);
// Retrieves the first character of view. If view is empty the behavior is

View File

@ -94,10 +94,10 @@ extern "C" void CpuFeatures_CloseFile(int file_descriptor) {
kFilesystem->FindFileOrDie(file_descriptor)->Close();
}
extern "C" int CpuFeatures_ReadFile(int file_descriptor, void* buf,
size_t count) {
extern "C" int CpuFeatures_ReadFile(int file_descriptor, void* buffer,
size_t buffer_size) {
return kFilesystem->FindFileOrDie(file_descriptor)
->Read(file_descriptor, buf, count);
->Read(file_descriptor, buffer, buffer_size);
}
} // namespace cpu_features