]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/crc32.c
dhb Medialist : created context menu function and moved lines which create
[bacula/bacula] / bacula / src / lib / crc32.c
index 4f69f3cada1eef0f0dbaf8fcaa8994ab926f72e4..d571009aa08d803c98d3a9cf6d88b7d17834f0df 100644 (file)
@@ -7,31 +7,39 @@
  *
  */
 /*
-   Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+   Bacula® - The Network Backup Solution
 
-   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 2 of
-   the License, or (at your option) any later version.
+   Copyright (C) 2000-2006 Free Software Foundation Europe e.V.
 
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   The main author of Bacula is Kern Sibbald, with contributions from
+   many others, a complete list can be found in the file AUTHORS.
+   This program is Free Software; you can redistribute it and/or
+   modify it under the terms of version two of the GNU General Public
+   License as published by the Free Software Foundation plus additions
+   that are listed in the file LICENSE.
+
+   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, write to the Free
-   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-   MA 02111-1307, USA.
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA.
 
- */
+   Bacula® is a registered trademark of John Walker.
+   The licensor of Bacula is the Free Software Foundation Europe
+   (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+   Switzerland, email:ftf@fsfeurope.org.
+*/
 
 #ifdef GENERATE_STATIC_CRC_TABLE
 /*
  * The following code can be used to generate the static CRC table.
  *
  * Note, the magic number 0xedb88320L below comes from the terms
- * of the defining polynomial x^n, 
+ * of the defining polynomial x^n,
  * where n=0,1,2,4,5,7,8,10,11,12,16,22,23,26
  */
 #include <stdio.h>
@@ -45,17 +53,17 @@ main()
    for (i = 0; i < 256; i++) {
       crc = (unsigned long)i;
       for (j = 0; j < 8; j++) {
-        if (crc & 1) {
-           crc = 0xedb88320L ^ (crc >> 1);
-        } else {
-           crc = crc >> 1;
-        }
+         if (crc & 1) {
+            crc = 0xedb88320L ^ (crc >> 1);
+         } else {
+            crc = crc >> 1;
+         }
       }
       buf[k++] = crc;
       if (k == 5) {
-        k = 0;
-         printf("  0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08x,\n", 
-           buf[0], buf[1], buf[2], buf[3], buf[4]);
+         k = 0;
+         printf("  0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08x,\n",
+            buf[0], buf[1], buf[2], buf[3], buf[4]);
       }
    }
    printf("  0x%08x\n", buf[0]);