mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-12 16:50:21 +00:00
Use void arguments list consistently in C code
On my way, fixed a couple of cases where we had `()` in the header, and non-empty argument list in the source file. PUBLISHED_FROM=5519526cf84e2bbd425a726fcc112fea1a95cbf1
This commit is contained in:
1 parent
5f93f7162f
commit
2a541175b5
12 files changed
+20
-20
No files matched your search
@@ -186,7 +186,7 @@ static void mg_init(struct mg_mgr *mgr) {
|
||||
extern void (*const g_pfnVectors[])(void);
|
||||
#endif
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
#ifndef USE_TIRTOS
|
||||
MAP_IntVTableBaseSet((unsigned long) &g_pfnVectors[0]);
|
||||
#endif
|
||||
@@ -223,10 +223,10 @@ int main() {
|
||||
}
|
||||
|
||||
/* These are FreeRTOS hooks for various life situations. */
|
||||
void vApplicationMallocFailedHook() {
|
||||
void vApplicationMallocFailedHook(void) {
|
||||
}
|
||||
|
||||
void vApplicationIdleHook() {
|
||||
void vApplicationIdleHook(void) {
|
||||
}
|
||||
|
||||
void vApplicationStackOverflowHook(OsiTaskHandle *th, signed char *tn) {
|
||||
|
||||
@@ -47,7 +47,7 @@ void data_init_sensors(int tmp006_addr, int bm222_addr) {
|
||||
}
|
||||
}
|
||||
|
||||
void data_collect() {
|
||||
void data_collect(void) {
|
||||
double volt = tmp006_read_sensor_voltage(s_tmp006_addr);
|
||||
double temp = tmp006_read_die_temp(s_tmp006_addr);
|
||||
if (volt != TMP006_INVALID_READING && temp != TMP006_INVALID_READING) {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "mongoose.h"
|
||||
|
||||
void data_collect();
|
||||
void data_collect(void);
|
||||
void data_init_sensors(int tmp006_addr, int bm222_addr);
|
||||
void data_conn_handler(struct mg_connection *nc, int ev, void *p);
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ static void mg_init(struct mg_mgr *mgr) {
|
||||
extern void (*const g_pfnVectors[])(void);
|
||||
#endif
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
#ifndef USE_TIRTOS
|
||||
MAP_IntVTableBaseSet((unsigned long) &g_pfnVectors[0]);
|
||||
#endif
|
||||
@@ -274,10 +274,10 @@ int main() {
|
||||
}
|
||||
|
||||
/* These are FreeRTOS hooks for various life situations. */
|
||||
void vApplicationMallocFailedHook() {
|
||||
void vApplicationMallocFailedHook(void) {
|
||||
}
|
||||
|
||||
void vApplicationIdleHook() {
|
||||
void vApplicationIdleHook(void) {
|
||||
}
|
||||
|
||||
void vApplicationStackOverflowHook(OsiTaskHandle *th, signed char *tn) {
|
||||
|
||||
@@ -10,6 +10,6 @@
|
||||
|
||||
bool wifi_setup_ap(const char *ssid, const char *pass, int channel);
|
||||
bool wifi_setup_sta(const char *ssid, const char *pass);
|
||||
void stop_nwp();
|
||||
void stop_nwp(void);
|
||||
|
||||
#endif /* CS_MONGOOSE_EXAMPLES_CC3200_WIFI_H_ */
|
||||
Reference in new issue
Block a user