[dvblast-devel] dvblastctl: Remove local variable that is shadowing a global one.

Georgi Chorbadzhiyski git at videolan.org
Sun Oct 2 00:06:46 CEST 2011


dvblast | branch: master | Georgi Chorbadzhiyski <gf at unixsol.org> | Sun Oct  2 01:01:26 2011 +0300| [a728a09b00b7f829902567bcefb6c40133992b0d] | committer: Georgi Chorbadzhiyski

dvblastctl: Remove local variable that is shadowing a global one.

Commit 102b40d2 added global cleanup function and made
i_fd variable global. Unfortunately i_fd definition was
not removed from main() so the cleanup function wasn't
really doing its job. The fix is simple just remove
the local definition of i_fd.

Signed-Off-By: Georgi Chorbadzhiyski <gf at unixsol.org>

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=a728a09b00b7f829902567bcefb6c40133992b0d
---

 dvblastctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dvblastctl.c b/dvblastctl.c
index 3ef6907..43b75e8 100644
--- a/dvblastctl.c
+++ b/dvblastctl.c
@@ -235,7 +235,7 @@ int main( int i_argc, char **ppsz_argv )
 {
     char *client_socket_tmpl = "dvblastctl.clientsock.XXXXXX";
     char *psz_srv_socket = NULL;
-    int i_fd, i;
+    int i;
     char *p_cmd, *p_arg1 = NULL, *p_arg2 = NULL;
     ssize_t i_size;
     struct sockaddr_un sun_client, sun_server;



More information about the dvblast-devel mailing list