Fix errors when compiling on newer compilers (prototype definitions fix)

This commit is contained in:
junepark678 authored and Nick Chan committed 2023-02-24 23:28:35 +08:00
1 parent df0c0f346d
commit fae5eaf07e
7 files changed
+19 -20

No files matched your search

+3 -3
View File
@@ -55,7 +55,7 @@ static bool set_locked_bool(bool* val, bool newval, pthread_mutex_t* mutex) {
return newval;
}
bool get_spin() {
bool get_spin(void) {
return get_locked_bool(&spin, &spin_mutex);
}
@@ -63,7 +63,7 @@ bool set_spin(bool newval) {
return set_locked_bool(&spin, newval, &spin_mutex);
}
bool get_found_pongo() {
bool get_found_pongo(void) {
return get_locked_bool(&found_pongo, &found_pongo_mutex);
}
@@ -71,7 +71,7 @@ bool set_found_pongo(bool val) {
return set_locked_bool(&found_pongo, val, &found_pongo_mutex);
}
uint64_t get_ecid_wait_for_dfu() {
uint64_t get_ecid_wait_for_dfu(void) {
LOG(LOG_VERBOSE5, "locking ecid wait for dfu mutex for get");
pthread_mutex_lock(&ecid_dfu_wait_mutex);
uint64_t ret = ecid_wait_for_dfu;