carlu: fix conflicting function declaration types
[carl9170fw.git] / tools / src / checksum.c
index 7d1ae35dac906eeb33e2a0e0282185c8e13361dd..24f70367bb8e328bd2a2615dcb5141bc337e2165 100644 (file)
@@ -54,8 +54,9 @@ int main(int argc, char *args[])
 
        fw = carlfw_load(args[1]);
        if (IS_ERR_OR_NULL(fw)) {
+               err = PTR_ERR(fw);
                fprintf(stderr, "Failed to open file \"%s\" (%d).\n",
-                       args[1], (int) PTR_ERR(fw));
+                       args[1], err);
                goto out;
        }