Move the bitbang prerequisite checks out from

main() into their own bitbang_check_prerequisites().


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@626 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch
2006-08-23 21:06:28 +00:00
parent 432b1fbc5e
commit 840af6b242
7 changed files with 38 additions and 19 deletions

2
par.c
View File

@@ -254,6 +254,8 @@ static int par_open(PROGRAMMER * pgm, char * port)
{
int rc;
bitbang_check_prerequisites(pgm);
pgm->fd = ppi_open(port);
if (pgm->fd < 0) {
fprintf(stderr, "%s: failed to open parallel port \"%s\"\n\n",