X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/d5833800a8d14bf8b57002e837ce69f3adbae694..4fd842f98df4970f6e49a0365dbed60774e56c09:/mkrounding.c diff --git a/mkrounding.c b/mkrounding.c index 11b8302c..939cb44a 100644 --- a/mkrounding.c +++ b/mkrounding.c @@ -1,3 +1,21 @@ +/* + * 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 version 3 as + * published by the Free Software Foundation. + * + * 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 +55,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; }