[Pkg-voip-commits] [dahdi-tools] 26/285: xpp: this is the right place for astribank_close()

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit 49a5fbfcd2cbfb8a3410818ed76134663ec2e1d2
Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Date:   Tue Jun 7 10:28:31 2011 +0000

    xpp: this is the right place for astribank_close()
    
    git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@9973 17933a7a-c749-41c5-a318-cba88f637d49
---
 xpp/astribank_hexload.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/xpp/astribank_hexload.c b/xpp/astribank_hexload.c
index 8362ba2..71d7aae 100644
--- a/xpp/astribank_hexload.c
+++ b/xpp/astribank_hexload.c
@@ -145,7 +145,6 @@ static int load_hexfile(struct astribank_device *astribank, const char *hexfile,
 int main(int argc, char *argv[])
 {
 	char			*devpath = NULL;
-	struct astribank_device *astribank;
 	int			opt_pic = 0;
 	int			opt_dest = 0;
 	enum dev_dest		dest = DEST_NONE;
@@ -244,7 +243,7 @@ int main(int argc, char *argv[])
 				return 1;
 			}
 		}
+		astribank_close(astribank, 0);
 	}
-	astribank_close(astribank, 0);
 	return 0;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list