From 94726db5e096420f623c5b49f0291b655133ceff Mon Sep 17 00:00:00 2001 From: Segwon Date: Thu, 16 Nov 2017 14:19:19 +0900 Subject: [PATCH] coding style: cannot put parameter in function defined to have no parameter. - function() -> function(void) Signed-off-by: Segwon Change-Id: I896916b02f45bdb84ed8120b3fb7273677ace9e1 --- include/gdbus/peripheral_gdbus_gpio.h | 2 +- include/gdbus/peripheral_gdbus_i2c.h | 2 +- include/gdbus/peripheral_gdbus_pwm.h | 2 +- include/gdbus/peripheral_gdbus_spi.h | 2 +- include/gdbus/peripheral_gdbus_uart.h | 2 +- src/gdbus/peripheral_gdbus_gpio.c | 6 +++--- src/gdbus/peripheral_gdbus_i2c.c | 6 +++--- src/gdbus/peripheral_gdbus_pwm.c | 6 +++--- src/gdbus/peripheral_gdbus_spi.c | 6 +++--- src/gdbus/peripheral_gdbus_uart.c | 6 +++--- src/peripheral_gpio.c | 2 +- src/peripheral_i2c.c | 2 +- src/peripheral_pwm.c | 2 +- src/peripheral_spi.c | 2 +- src/peripheral_uart.c | 2 +- 15 files changed, 25 insertions(+), 25 deletions(-) diff --git a/include/gdbus/peripheral_gdbus_gpio.h b/include/gdbus/peripheral_gdbus_gpio.h index 1ffe214..9402a0b 100644 --- a/include/gdbus/peripheral_gdbus_gpio.h +++ b/include/gdbus/peripheral_gdbus_gpio.h @@ -20,6 +20,6 @@ #include "peripheral_gdbus_common.h" int peripheral_gdbus_gpio_open(peripheral_gpio_h gpio); -int peripheral_gdbus_gpio_close(); +int peripheral_gdbus_gpio_close(void); #endif /* __PERIPHERAL_GDBUS_GPIO_H__ */ diff --git a/include/gdbus/peripheral_gdbus_i2c.h b/include/gdbus/peripheral_gdbus_i2c.h index 9d9f9a5..099da4e 100644 --- a/include/gdbus/peripheral_gdbus_i2c.h +++ b/include/gdbus/peripheral_gdbus_i2c.h @@ -20,6 +20,6 @@ #include "peripheral_gdbus_common.h" int peripheral_gdbus_i2c_open(peripheral_i2c_h i2c, int bus, int address); -int peripheral_gdbus_i2c_close(); +int peripheral_gdbus_i2c_close(void); #endif /* __PERIPHERAL_GDBUS_I2C_H__ */ diff --git a/include/gdbus/peripheral_gdbus_pwm.h b/include/gdbus/peripheral_gdbus_pwm.h index c0764c6..e5c26c8 100644 --- a/include/gdbus/peripheral_gdbus_pwm.h +++ b/include/gdbus/peripheral_gdbus_pwm.h @@ -20,6 +20,6 @@ #include "peripheral_gdbus_common.h" int peripheral_gdbus_pwm_open(peripheral_pwm_h pwm, int chip, int pin); -int peripheral_gdbus_pwm_close(); +int peripheral_gdbus_pwm_close(void); #endif /* __PERIPHERAL_GDBUS_PWM_H__ */ diff --git a/include/gdbus/peripheral_gdbus_spi.h b/include/gdbus/peripheral_gdbus_spi.h index 6f4aaa3..a828c10 100644 --- a/include/gdbus/peripheral_gdbus_spi.h +++ b/include/gdbus/peripheral_gdbus_spi.h @@ -20,6 +20,6 @@ #include "peripheral_gdbus_common.h" int peripheral_gdbus_spi_open(peripheral_spi_h spi, int bus, int cs); -int peripheral_gdbus_spi_close(); +int peripheral_gdbus_spi_close(void); #endif /* __PERIPHERAL_GDBUS_SPI_H_ */ diff --git a/include/gdbus/peripheral_gdbus_uart.h b/include/gdbus/peripheral_gdbus_uart.h index 048eed5..fc58ee8 100644 --- a/include/gdbus/peripheral_gdbus_uart.h +++ b/include/gdbus/peripheral_gdbus_uart.h @@ -20,6 +20,6 @@ #include "peripheral_gdbus_common.h" int peripheral_gdbus_uart_open(peripheral_uart_h uart, int port); -int peripheral_gdbus_uart_close(); +int peripheral_gdbus_uart_close(void); #endif /* __PERIPHERAL_GDBUS_UART_H_ */ diff --git a/src/gdbus/peripheral_gdbus_gpio.c b/src/gdbus/peripheral_gdbus_gpio.c index c935a4c..2f2ead6 100644 --- a/src/gdbus/peripheral_gdbus_gpio.c +++ b/src/gdbus/peripheral_gdbus_gpio.c @@ -22,7 +22,7 @@ static PeripheralIoGdbusGpio *gpio_proxy = NULL; -static int __gpio_proxy_init() +static int __gpio_proxy_init(void) { GError *error = NULL; @@ -49,7 +49,7 @@ static int __gpio_proxy_init() return PERIPHERAL_ERROR_NONE; } -static int __gpio_proxy_deinit() +static int __gpio_proxy_deinit(void) { if (gpio_proxy == NULL) { _E("Gpio proxy is NULL"); @@ -117,7 +117,7 @@ int peripheral_gdbus_gpio_open(peripheral_gpio_h gpio) return ret; } -int peripheral_gdbus_gpio_close() +int peripheral_gdbus_gpio_close(void) { int ret = __gpio_proxy_deinit(); return ret; diff --git a/src/gdbus/peripheral_gdbus_i2c.c b/src/gdbus/peripheral_gdbus_i2c.c index cc5f300..0300fb8 100644 --- a/src/gdbus/peripheral_gdbus_i2c.c +++ b/src/gdbus/peripheral_gdbus_i2c.c @@ -20,7 +20,7 @@ static PeripheralIoGdbusI2c *i2c_proxy = NULL; -static int __i2c_proxy_init() +static int __i2c_proxy_init(void) { GError *error = NULL; @@ -47,7 +47,7 @@ static int __i2c_proxy_init() return PERIPHERAL_ERROR_NONE; } -static int __i2c_proxy_deinit() +static int __i2c_proxy_deinit(void) { if (i2c_proxy == NULL) { _E("I2c proxy is NULL"); @@ -101,7 +101,7 @@ int peripheral_gdbus_i2c_open(peripheral_i2c_h i2c, int bus, int address) return ret; } -int peripheral_gdbus_i2c_close() +int peripheral_gdbus_i2c_close(void) { int ret = __i2c_proxy_deinit(); return ret; diff --git a/src/gdbus/peripheral_gdbus_pwm.c b/src/gdbus/peripheral_gdbus_pwm.c index 4c1d916..1274744 100644 --- a/src/gdbus/peripheral_gdbus_pwm.c +++ b/src/gdbus/peripheral_gdbus_pwm.c @@ -23,7 +23,7 @@ static PeripheralIoGdbusPwm *pwm_proxy = NULL; -static int __pwm_proxy_init() +static int __pwm_proxy_init(void) { GError *error = NULL; @@ -50,7 +50,7 @@ static int __pwm_proxy_init() return PERIPHERAL_ERROR_NONE; } -static int __pwm_proxy_deinit() +static int __pwm_proxy_deinit(void) { if (pwm_proxy == NULL) { _E("Pwm proxy is NULL"); @@ -126,7 +126,7 @@ int peripheral_gdbus_pwm_open(peripheral_pwm_h pwm, int chip, int pin) return ret; } -int peripheral_gdbus_pwm_close() +int peripheral_gdbus_pwm_close(void) { int ret = __pwm_proxy_deinit(); return ret; diff --git a/src/gdbus/peripheral_gdbus_spi.c b/src/gdbus/peripheral_gdbus_spi.c index b0653e4..9cdb0e8 100644 --- a/src/gdbus/peripheral_gdbus_spi.c +++ b/src/gdbus/peripheral_gdbus_spi.c @@ -20,7 +20,7 @@ static PeripheralIoGdbusSpi *spi_proxy = NULL; -static int __spi_proxy_init() +static int __spi_proxy_init(void) { GError *error = NULL; @@ -47,7 +47,7 @@ static int __spi_proxy_init() return PERIPHERAL_ERROR_NONE; } -static int __spi_proxy_deinit() +static int __spi_proxy_deinit(void) { if (spi_proxy == NULL) { _E("Spi proxy is NULL"); @@ -102,7 +102,7 @@ int peripheral_gdbus_spi_open(peripheral_spi_h spi, int bus, int cs) return ret; } -int peripheral_gdbus_spi_close() +int peripheral_gdbus_spi_close(void) { int ret = __spi_proxy_deinit(); return ret; diff --git a/src/gdbus/peripheral_gdbus_uart.c b/src/gdbus/peripheral_gdbus_uart.c index a15e566..539ccf6 100644 --- a/src/gdbus/peripheral_gdbus_uart.c +++ b/src/gdbus/peripheral_gdbus_uart.c @@ -20,7 +20,7 @@ static PeripheralIoGdbusUart *uart_proxy = NULL; -static int __uart_proxy_init() +static int __uart_proxy_init(void) { GError *error = NULL; @@ -47,7 +47,7 @@ static int __uart_proxy_init() return PERIPHERAL_ERROR_NONE; } -static int __uart_proxy_deinit() +static int __uart_proxy_deinit(void) { if (uart_proxy == NULL) { _E("Uart proxy is NULL"); @@ -101,7 +101,7 @@ int peripheral_gdbus_uart_open(peripheral_uart_h uart, int port) return ret; } -int peripheral_gdbus_uart_close() +int peripheral_gdbus_uart_close(void) { int ret = __uart_proxy_deinit(); return ret; diff --git a/src/peripheral_gpio.c b/src/peripheral_gpio.c index 1333122..b6ea462 100644 --- a/src/peripheral_gpio.c +++ b/src/peripheral_gpio.c @@ -30,7 +30,7 @@ static int gpio_feature = GPIO_FEATURE_UNKNOWN; -static bool __is_feature_supported() +static bool __is_feature_supported(void) { int ret = SYSTEM_INFO_ERROR_NONE; bool feature = false; diff --git a/src/peripheral_i2c.c b/src/peripheral_i2c.c index 44d6052..f3a8c5a 100644 --- a/src/peripheral_i2c.c +++ b/src/peripheral_i2c.c @@ -40,7 +40,7 @@ static int i2c_feature = I2C_FEATURE_UNKNOWN; -static bool __is_feature_supported() +static bool __is_feature_supported(void) { int ret = SYSTEM_INFO_ERROR_NONE; bool feature = false; diff --git a/src/peripheral_pwm.c b/src/peripheral_pwm.c index 12e6fc2..f418ac5 100644 --- a/src/peripheral_pwm.c +++ b/src/peripheral_pwm.c @@ -30,7 +30,7 @@ static int pwm_feature = PWM_FEATURE_UNKNOWN; -static bool __is_feature_supported() +static bool __is_feature_supported(void) { int ret = SYSTEM_INFO_ERROR_NONE; bool feature = false; diff --git a/src/peripheral_spi.c b/src/peripheral_spi.c index 9b25a2e..862e4d9 100644 --- a/src/peripheral_spi.c +++ b/src/peripheral_spi.c @@ -30,7 +30,7 @@ static int spi_feature = SPI_FEATURE_UNKNOWN; -static bool __is_feature_supported() +static bool __is_feature_supported(void) { int ret = SYSTEM_INFO_ERROR_NONE; bool feature = false; diff --git a/src/peripheral_uart.c b/src/peripheral_uart.c index b18ccff..988dd38 100644 --- a/src/peripheral_uart.c +++ b/src/peripheral_uart.c @@ -30,7 +30,7 @@ static int uart_feature = UART_FEATURE_UNKNOWN; -static bool __is_feature_supported() +static bool __is_feature_supported(void) { int ret = SYSTEM_INFO_ERROR_NONE; bool feature = false; -- 2.7.4