diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2012-11-30 16:46:45 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2012-11-30 16:46:45 +0000 |
commit | acfc4c6c2fb66e8142df8ed69aa8c6374abc871a (patch) | |
tree | 5ff0aa18b77638d51e0870ca1f1229fd393809f0 /serprog.c | |
parent | 62574aa5c0bf0df43a2ed0182562f17f30825f0d (diff) | |
download | ast2050-flashrom-acfc4c6c2fb66e8142df8ed69aa8c6374abc871a.zip ast2050-flashrom-acfc4c6c2fb66e8142df8ed69aa8c6374abc871a.tar.gz |
Fix sp_openserport users on Windows
Corresponding to flashrom svn r1627.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Idwer Vollering <vidwer@gmail.com>
Diffstat (limited to 'serprog.c')
-rw-r--r-- | serprog.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -372,7 +372,7 @@ int serprog_init(void) } if (strlen(device)) { sp_fd = sp_openserport(device, atoi(baudport)); - if (sp_fd < 0) { + if (sp_fd == SER_INV_FD) { free(device); return 1; } |