Tweaking the license text a bit more.
[rsync/rsync.git] / mkrounding.c
index 11b8302..d978d4b 100644 (file)
@@ -1,3 +1,22 @@
+/*
+ * A pre-compilation helper program to aid in the creation of rounding.h.
+ *
+ * Copyright (C) 2007 Wayne Davison
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, visit the http://fsf.org website.
+ */
+
 #include "rsync.h"
 
 struct test1 {
@@ -37,9 +56,11 @@ struct test4 {
        cnt = 3;
     }
     if (cnt)
-       fprintf(stderr, "Rounding file_extras values in multiples of %d.\n", cnt + 1);
+       fprintf(stderr, "Rounding file_extras in multiples of %d", cnt + 1);
     else
-       fprintf(stderr, "No rounding needed for file_extras values.\n");
+       fprintf(stderr, "No rounding needed for file_extras");
+    fprintf(stderr, " (EXTRA_LEN=%d, FILE_STRUCT_LEN=%d)\n",
+           (int)EXTRA_LEN, (int)FILE_STRUCT_LEN);
     printf("#define EXTRA_ROUNDING %d\n", cnt);
     return 0;
 }