/[PAMELA software]/yoda/techmodel/forroutines/tracker/readraw/dunpacker.c
ViewVC logotype

Diff of /yoda/techmodel/forroutines/tracker/readraw/dunpacker.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by kusanagi, Tue Jul 6 12:20:23 2004 UTC revision 3.0 by kusanagi, Fri Mar 4 15:54:11 2005 UTC
# Line 33  void dunpacker_(int *l_buffer, unsigned Line 33  void dunpacker_(int *l_buffer, unsigned
33      nread=read(*fd, buffer, 2**l_buffer);      nread=read(*fd, buffer, 2**l_buffer);
34    
35      if( nread==0 ) {      if( nread==0 ) {
36          printf("dunpacker: Unexpected end of file %d at %d \n",*fd,nread);  //      printf("dunpacker: Unexpected end of file %d at %d \n",*fd,nread);
37          *error=1;          *error=1;
38          return ;          return ;
39      }      }
40      if ( nread != 2**l_buffer) {      if ( nread != 2**l_buffer) {
41          printf("dunpacker: Error on reading: nread = %d \n",nread);  //      printf("dunpacker: Error on reading: nread = %d \n",nread);
42          *error=-1;          *error=-1;
43          return ;          return ;
44      }      }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.3.0

  ViewVC Help
Powered by ViewVC 1.1.23