[Fix][stack-buffer-overflow] Use gboolean when using g_variant_get for boolean. 36/185036/1
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 25 Jul 2018 09:52:06 +0000 (15:22 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 25 Jul 2018 09:52:06 +0000 (15:22 +0530)
commitfe7130cfd5e0aa33b899d5576900c31bc9845d04
treedc52b7e7f07a7537a05700bab49ca9d078939e3c
parent8d9d52785402a1572c466178a3ab5e6838715183
[Fix][stack-buffer-overflow] Use gboolean when using g_variant_get for boolean.

Description: g_variant_get API expects reference of gboolean variable
in third parameter, and we arepassing reference of bool variable.

As per Glib's documentation, gboolean is typecast of int.
=================================================================
(Reference: https://people.gnome.org/~desrt/glib-docs/glib-Basic-Types.html#gboolean)

gboolean

typedef gint   gboolean;

A standard boolean type. Variables of this type should only contain the value TRUE or FALSE.
=================================================================

Change-Id: I84f0120229a2a9eeec976b1785d5cc4d112db534
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
gtest/network_state.cpp
gtest/network_state.h
gtest/unittest.cpp
gtest/wifi.cpp
gtest/wifi.h
packaging/net-config.spec