Cast pointer arithmetics to make weird gcc versions happy.
authorocto <octo>
Fri, 21 Apr 2006 07:37:45 +0000 (07:37 +0000)
committerocto <octo>
Fri, 21 Apr 2006 07:37:45 +0000 (07:37 +0000)
src/common.c

index 58db4d8..d1f1551 100644 (file)
@@ -488,7 +488,7 @@ static int log_create_file (char *filename, char **ds_def, int ds_num)
 
                /* The `%.*s' is needed because there is no null-byte behind
                 * the name. */
-               fprintf(log, ",%.*s", (tmp - name), name);
+               fprintf(log, ",%.*s", (int) (tmp - name), name);
        }
        fprintf(log, "\n");
        fclose(log);