]> git.zerfleddert.de Git - hmcfgusb/commitdiff
fix variable assignment, copyright year
authorMichael Gernoth <michael@gernoth.net>
Wed, 5 Mar 2014 07:56:19 +0000 (08:56 +0100)
committerMichael Gernoth <michael@gernoth.net>
Wed, 5 Mar 2014 07:56:19 +0000 (08:56 +0100)
culfw.c
culfw.h
flash-ota.c

diff --git a/culfw.c b/culfw.c
index 72c5c6a2f7ef02810d78f3c81952f905ec6189cb..0dfb807e290ce968a79c8be60a52aa71319526e0 100644 (file)
--- a/culfw.c
+++ b/culfw.c
@@ -1,6 +1,6 @@
 /* culfw driver
  *
- * Copyright (c) 2013 Michael Gernoth <michael@gernoth.net>
+ * Copyright (c) 2014 Michael Gernoth <michael@gernoth.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
diff --git a/culfw.h b/culfw.h
index 8f644334e60a1f3847a5dde646c1fe99652411e7..29aacaf5d30fdb18624de1d7e1f53513cc9f386c 100644 (file)
--- a/culfw.h
+++ b/culfw.h
@@ -1,6 +1,6 @@
 /* culfw driver
  *
- * Copyright (c) 2013 Michael Gernoth <michael@gernoth.net>
+ * Copyright (c) 2014 Michael Gernoth <michael@gernoth.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
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) {
+               errno = 0;
                switch (dev.type) {
-                       errno = 0;
                        case DEVICE_TYPE_CULFW:
                                pfd = culfw_poll(dev.culfw, 1);
                                break;
Impressum, Datenschutz