summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-04-19 10:57:43 -0400
committerChris Michael <cp.michael@samsung.com>2017-04-19 10:57:43 -0400
commit0652fbe91cf348cf02c7300c3e40b95e6247324c (patch)
tree348a9e3cbc9b8ab494b40ca44d6dcede2e538589 /src
parent84a584b313dcd9a53ea3e98d0a84c44917c651ea (diff)
ecore-con: Remove unused variable
Gcc complains that 'flags' here may be used uninitialized. In looking at the code, 'flags' does not seem to be needed in the debug prints here. If we keep and initialize the variable to 0 during declaration, it would only ever print out 0 anyway as 'flags' is never changed in the code. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_con/efl_net_dialer_http.c3
-rw-r--r--src/lib/ecore_con/efl_net_server_fd.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/ecore_con/efl_net_dialer_http.c b/src/lib/ecore_con/efl_net_dialer_http.c
index 8bc273a4ce..68cb83fa0c 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.c
+++ b/src/lib/ecore_con/efl_net_dialer_http.c
@@ -1773,7 +1773,6 @@ _efl_net_dialer_http_efl_io_closer_close_on_exec_set(Eo *o EINA_UNUSED, Efl_Net_
1773 pd->close_on_exec = close_on_exec; 1773 pd->close_on_exec = close_on_exec;
1774 return EINA_FALSE; 1774 return EINA_FALSE;
1775#else 1775#else
1776 int flags;
1777 Eina_Bool old = pd->close_on_exec; 1776 Eina_Bool old = pd->close_on_exec;
1778 1777
1779 pd->close_on_exec = close_on_exec; 1778 pd->close_on_exec = close_on_exec;
@@ -1782,7 +1781,7 @@ _efl_net_dialer_http_efl_io_closer_close_on_exec_set(Eo *o EINA_UNUSED, Efl_Net_
1782 1781
1783 if (!eina_file_close_on_exec(pd->fd, close_on_exec)) 1782 if (!eina_file_close_on_exec(pd->fd, close_on_exec))
1784 { 1783 {
1785 ERR("fcntl(" SOCKET_FMT ", F_SETFD, %#x): %s", pd->fd, flags, strerror(errno)); 1784 ERR("fcntl(" SOCKET_FMT ", F_SETFD): %s", pd->fd, strerror(errno));
1786 pd->close_on_exec = old; 1785 pd->close_on_exec = old;
1787 return EINA_FALSE; 1786 return EINA_FALSE;
1788 } 1787 }
diff --git a/src/lib/ecore_con/efl_net_server_fd.c b/src/lib/ecore_con/efl_net_server_fd.c
index de699b268b..03448ec856 100644
--- a/src/lib/ecore_con/efl_net_server_fd.c
+++ b/src/lib/ecore_con/efl_net_server_fd.c
@@ -270,7 +270,6 @@ _efl_net_server_fd_close_on_exec_set(Eo *o, Efl_Net_Server_Fd_Data *pd, Eina_Boo
270{ 270{
271#ifdef FD_CLOEXEC 271#ifdef FD_CLOEXEC
272 SOCKET fd; 272 SOCKET fd;
273 int flags;
274 Eina_Bool old = pd->close_on_exec; 273 Eina_Bool old = pd->close_on_exec;
275#endif 274#endif
276 275
@@ -282,7 +281,7 @@ _efl_net_server_fd_close_on_exec_set(Eo *o, Efl_Net_Server_Fd_Data *pd, Eina_Boo
282 281
283 if (!eina_file_close_on_exec(fd, close_on_exec)) 282 if (!eina_file_close_on_exec(fd, close_on_exec))
284 { 283 {
285 ERR("fcntl(" SOCKET_FMT ", F_SETFD, %#x): %s", fd, flags, strerror(errno)); 284 ERR("fcntl(" SOCKET_FMT ", F_SETFD,): %s", fd, strerror(errno));
286 pd->close_on_exec = old; 285 pd->close_on_exec = old;
287 return EINA_FALSE; 286 return EINA_FALSE;
288 } 287 }