mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 20:45:31 -04:00
universal7885: libfileio: Fix the unoverloadable function error
device/samsung/universal7885-common/apps/aidl-support/libfileio/FileIO.cpp:27:5: error: functions that differ only in their return type cannot be overloaded
int readline(const char *path) {
~~~ ^
device/samsung/universal7885-common/apps/aidl-support/libfileio/FileIO.cpp:12:13: note: previous definition is here
std::string readline(const char *path) {
~~~~~~~~~~~ ^
1 error generated.
- Rename int version to 'readint' to fix
This commit is contained in:
parent
eea872d99a
commit
8d728a6111
6 changed files with 7 additions and 7 deletions
|
|
@ -38,7 +38,7 @@ constexpr const char *FM_FREQ_SEEK = FM_SYSFS_BASE "/radio_freq_seek";
|
|||
}
|
||||
switch (type) {
|
||||
case GetType::GET_TYPE_FM_FREQ:
|
||||
*_aidl_return = FileIO::readline(FM_FREQ_CTL);
|
||||
*_aidl_return = FileIO::readint(FM_FREQ_CTL);
|
||||
break;
|
||||
case GetType::GET_TYPE_FM_UPPER_LIMIT:
|
||||
case GetType::GET_TYPE_FM_LOWER_LIMIT:
|
||||
|
|
@ -109,7 +109,7 @@ constexpr const char *FM_FREQ_SEEK = FM_SYSFS_BASE "/radio_freq_seek";
|
|||
for (int i = 0; i < TRACK_SIZE; i++) {
|
||||
FileIO::writeline(FM_FREQ_SEEK,
|
||||
"1 " + std::to_string(SYSFS_SPACING * 10));
|
||||
int freq = FileIO::readline(FM_FREQ_CTL);
|
||||
int freq = FileIO::readint(FM_FREQ_CTL);
|
||||
if (std::find(freqs_list.begin(), freqs_list.end(), freq) !=
|
||||
freqs_list.end())
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue