]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/ebcdic.c
Change copyright as per agreement with FSFE
[bacula/bacula] / bacula / src / stored / ebcdic.c
index faa8c8ba48edca4330f0d20638f1ee218153e140..eddcddc92b61aabd5fa3e77127192bf4456c2972 100644 (file)
@@ -1,8 +1,27 @@
 /*
- * Taken from the public domain ansitape program for 
+   Bacula(R) - The Network Backup Solution
+
+   Copyright (C) 2000-2016 Kern Sibbald
+
+   The original author of Bacula is Kern Sibbald, with contributions
+   from many others, a complete list can be found in the file AUTHORS.
+
+   You may use this file and others of this release according to the
+   license defined in the LICENSE file, which includes the Affero General
+   Public License, v3.0 ("AGPLv3") and some additional permissions and
+   terms pursuant to its AGPLv3 Section 7.
+
+   This notice must be preserved when any source code is 
+   conveyed and/or propagated.
+
+   Bacula(R) is a registered trademark of Kern Sibbald.
+*/
+/*
+ * Taken from the public domain ansitape program for
  *   integration into Bacula. KES - Mar 2005
  */
 
+
 /* Mapping of EBCDIC codes to ASCII equivalents. */
 static char to_ascii_table[256] = {
    '\000', '\001', '\002', '\003',
@@ -142,9 +161,9 @@ static char to_ebcdic_table[256] = {
 
 
 /*
- * Convert from ASCII to EBCDIC 
+ * Convert from ASCII to EBCDIC
  */
-asci_to_ebcdic(char *dst, char *src, int count)
+void ascii_to_ebcdic(char *dst, char *src, int count)
 {
    while (count--) {
       *dst++ = to_ebcdic_table[0377 & *src++];
@@ -155,9 +174,9 @@ asci_to_ebcdic(char *dst, char *src, int count)
 /*
  * Convert from EBCDIC to ASCII
  */
-ebcdic_to_ascii(char *dst, char *src, int count)
+void ebcdic_to_ascii(char *dst, char *src, int count)
 {
    while (count--) {
-      *dst++ = to_asci_table[0377 & *src++];
+      *dst++ = to_ascii_table[0377 & *src++];
    }
 }