]> git.zerfleddert.de Git - hmcfgusb/blobdiff - flash-ota.c
fix variable assignment, copyright year
[hmcfgusb] / flash-ota.c
index 7afab1399c64b24d8eaeebe2d77e58bd9df6ced9..fdd5936b250e283b08a809d9a90374e5ca73cb69 100644 (file)
@@ -450,8 +450,8 @@ int main(int argc, char **argv)
        printf("Waiting for device with serial %s\n", serial);
 
        while (1) {
        printf("Waiting for device with serial %s\n", serial);
 
        while (1) {
+               errno = 0;
                switch (dev.type) {
                switch (dev.type) {
-                       errno = 0;
                        case DEVICE_TYPE_CULFW:
                                pfd = culfw_poll(dev.culfw, 1);
                                break;
                        case DEVICE_TYPE_CULFW:
                                pfd = culfw_poll(dev.culfw, 1);
                                break;
Impressum, Datenschutz