From 0edcd7f291b728aee5e0c99434d2d8d9d81f6af6 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 5 Mar 2014 08:56:19 +0100 Subject: [PATCH 1/1] fix variable assignment, copyright year --- culfw.c | 2 +- culfw.h | 2 +- flash-ota.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/culfw.c b/culfw.c index 72c5c6a..0dfb807 100644 --- a/culfw.c +++ b/culfw.c @@ -1,6 +1,6 @@ /* culfw driver * - * Copyright (c) 2013 Michael Gernoth + * Copyright (c) 2014 Michael Gernoth * * 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 8f64433..29aacaf 100644 --- a/culfw.h +++ b/culfw.h @@ -1,6 +1,6 @@ /* culfw driver * - * Copyright (c) 2013 Michael Gernoth + * Copyright (c) 2014 Michael Gernoth * * 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/flash-ota.c b/flash-ota.c index 7afab13..fdd5936 100644 --- a/flash-ota.c +++ b/flash-ota.c @@ -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; -- 2.39.5