From fdd8f279b4780d5fcf799c38d2c892cfb7a73dd1 Mon Sep 17 00:00:00 2001 From: Segwon Date: Thu, 21 Sep 2017 12:21:38 +0900 Subject: [PATCH] naming: added static keword at static variable. Signed-off-by: Segwon Change-Id: Ia8e14e8164311f7b40bb146a185eb08d8aabafa7 --- src/peripheral_gdbus_gpio.c | 4 ++-- src/peripheral_gdbus_i2c.c | 2 +- src/peripheral_gdbus_pwm.c | 2 +- src/peripheral_gdbus_spi.c | 2 +- src/peripheral_gdbus_uart.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/peripheral_gdbus_gpio.c b/src/peripheral_gdbus_gpio.c index be01654..42025de 100644 --- a/src/peripheral_gdbus_gpio.c +++ b/src/peripheral_gdbus_gpio.c @@ -25,7 +25,7 @@ extern int peripheral_gpio_interrupted_cb_handler(int pin, int value, unsigned long long timestamp, int err); -PeripheralIoGdbusGpio *gpio_proxy = NULL; +static PeripheralIoGdbusGpio *gpio_proxy = NULL; static void __peripheral_gpio_interrupted_cb(PeripheralIoGdbusGpio *gpio, gint pin, gint value, guint64 timestamp, gpointer user_data) { @@ -244,4 +244,4 @@ int peripheral_gdbus_gpio_write(peripheral_gpio_h gpio, int value) } return ret; -} \ No newline at end of file +} diff --git a/src/peripheral_gdbus_i2c.c b/src/peripheral_gdbus_i2c.c index cc3de07..e0a39ac 100644 --- a/src/peripheral_gdbus_i2c.c +++ b/src/peripheral_gdbus_i2c.c @@ -23,7 +23,7 @@ #include "peripheral_internal.h" #include "peripheral_io_gdbus.h" -PeripheralIoGdbusI2c *i2c_proxy = NULL; +static PeripheralIoGdbusI2c *i2c_proxy = NULL; void i2c_proxy_init(void) { diff --git a/src/peripheral_gdbus_pwm.c b/src/peripheral_gdbus_pwm.c index 5d83882..e1fdae9 100644 --- a/src/peripheral_gdbus_pwm.c +++ b/src/peripheral_gdbus_pwm.c @@ -23,7 +23,7 @@ #include "peripheral_internal.h" #include "peripheral_io_gdbus.h" -PeripheralIoGdbusPwm *pwm_proxy = NULL; +static PeripheralIoGdbusPwm *pwm_proxy = NULL; void pwm_proxy_init(void) { diff --git a/src/peripheral_gdbus_spi.c b/src/peripheral_gdbus_spi.c index ae01e87..cc7a8a5 100644 --- a/src/peripheral_gdbus_spi.c +++ b/src/peripheral_gdbus_spi.c @@ -23,7 +23,7 @@ #include "peripheral_internal.h" #include "peripheral_io_gdbus.h" -PeripheralIoGdbusSpi *spi_proxy = NULL; +static PeripheralIoGdbusSpi *spi_proxy = NULL; void spi_proxy_init(void) { diff --git a/src/peripheral_gdbus_uart.c b/src/peripheral_gdbus_uart.c index aa3b364..78bc0c0 100644 --- a/src/peripheral_gdbus_uart.c +++ b/src/peripheral_gdbus_uart.c @@ -23,7 +23,7 @@ #include "peripheral_internal.h" #include "peripheral_io_gdbus.h" -PeripheralIoGdbusUart *uart_proxy = NULL; +static PeripheralIoGdbusUart *uart_proxy = NULL; void uart_proxy_init(void) { -- 2.7.4