Diff for /src/sys/vfs/udf/osta.c between versions 1.1 and 1.2

version 1.1, 2004/03/12 22:38:15 version 1.2, 2004/05/09 22:15:00
Line 211  static unsigned short crc_table[256] = { Line 211  static unsigned short crc_table[256] = {
 };  };
   
 unsigned short  unsigned short
udf_cksum(s, n)udf_cksum(unsigned char *s, int n)
        unsigned char *s; 
        int n; 
 {  {
         unsigned short crc=0;          unsigned short crc=0;
   
Line 224  udf_cksum(s, n) Line 222  udf_cksum(s, n)
   
 /* UNICODE Checksum */  /* UNICODE Checksum */
 unsigned short  unsigned short
udf_unicode_cksum(s, n)udf_unicode_cksum(unsigned short *s, int n)
        unsigned short *s; 
        int n; 
 {  {
         unsigned short crc=0;          unsigned short crc=0;
   
Line 243  udf_unicode_cksum(s, n) Line 239  udf_unicode_cksum(s, n)
 #ifdef MAIN  #ifdef MAIN
 unsigned char bytes[] = { 0x70, 0x6A, 0x77 };  unsigned char bytes[] = { 0x70, 0x6A, 0x77 };
   
main()int
 main(void)
 {  {
         unsigned short x;          unsigned short x;
   
         x = cksum(bytes, sizeof bytes);          x = cksum(bytes, sizeof bytes);
         printf("checksum: calculated=%4.4x, correct=%4.4x\en", x, 0x3299);          printf("checksum: calculated=%4.4x, correct=%4.4x\en", x, 0x3299);
         exit(0);          exit(0);

Removed from v.1.1  
changed lines
  Added in v.1.2