]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/crc32.c
ebl add sql_escape to catalog messages
[bacula/bacula] / bacula / src / lib / crc32.c
index 81eefa7dfdd5108ea8b1a6819c570b762e7a6803..8b379a727fc356a4707d12e453cbb1f34749620c 100644 (file)
@@ -3,23 +3,25 @@
  *
  *   By Kern Sibbald, January 2001
  *
+ *   Version $Id$
+ *
  */
 /*
-   Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+   Copyright (C) 2001-2004 Kern Sibbald and John Walker
 
-   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.
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
 
-   This program is distributed in the hope that it will be useful,
+   This library 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.
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser 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,
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
    MA 02111-1307, USA.
 
  */
@@ -29,7 +31,7 @@
  * 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>
@@ -52,7 +54,7 @@ main()
       buf[k++] = crc;
       if (k == 5) {
         k = 0;
-         printf("  0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08x,\n", 
+        printf("  0x%08x, 0x%08x, 0x%08x, 0x%08x, 0x%08x,\n",
            buf[0], buf[1], buf[2], buf[3], buf[4]);
       }
    }