summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-07 10:28:31 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-06-07 10:28:31 +0000
commitb845b4e8d6aefefd363b962afeaf1e20d4fab1ef (patch)
tree4c00d759db7b06fe4e577024cf0524787d88e9b4
parent924fa26e9a3fb208e33d62500b70f0cd72601403 (diff)
xpp: this is the right place for astribank_close()
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@9973 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--xpp/astribank_hexload.c3
1 files changed, 1 insertions, 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;
}