In ser_open(), do fill in fdp->ifd before already
using it in ser_setspeed(). git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@701 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
863e3f6c92
commit
ee0dcf32bc
|
@ -1,3 +1,8 @@
|
||||||
|
2006-12-11 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
* ser_posix.c (ser_open): Do fill in fdp->ifd before already
|
||||||
|
using it in ser_setspeed().
|
||||||
|
|
||||||
2006-12-11 Joerg Wunsch <j@uriah.heep.sax.de>
|
2006-12-11 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
* jtagmkI.c (jtagmkI_close): revert baud rate to the initial
|
* jtagmkI.c (jtagmkI_close): revert baud rate to the initial
|
||||||
|
|
|
@ -236,6 +236,8 @@ static void ser_open(char * port, long baud, union filedescriptor *fdp)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fdp->ifd = fd;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* set serial line attributes
|
* set serial line attributes
|
||||||
*/
|
*/
|
||||||
|
@ -246,8 +248,6 @@ static void ser_open(char * port, long baud, union filedescriptor *fdp)
|
||||||
progname, port, strerror(-rc));
|
progname, port, strerror(-rc));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
fdp->ifd = fd;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue