Ignore:
Timestamp:
Jul 18, 2015, 5:06:52 PM (6 years ago)
Author:
katerina
Message:

Enhancements and fixes for tickets #374, #375, #376, #377, #378, and #379.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_filetype.c

    r454 r481  
    406406    }
    407407
    408   /* fprintf(stderr, "FIXME: %d %d %s ", dtype, length, type); */
    409   /**
    410   if (dtype == 0)
    411     fprintf(stderr, "%s\n", pattern);
    412   else
    413     {
    414       int k;
    415       for (k = 0; k < length; ++k)
    416         fprintf(stderr, "0x%X", (unsigned int) (pattern[k]));
    417       fprintf(stderr, "\n");
    418     }
    419   **/
    420 
    421408  for (i = 0; i < n; ++i)
    422409    {
     
    523510          p = &buffer[sh_ftype_arr[i]->offset];
    524511
    525 #if 0
    526           {
    527             int dd;
    528             /* fprintf(stderr, "FIXME: %03d comp %d:%d  ", i,
    529                sh_ftype_arr[i]->offset, sh_ftype_arr[i]->length); */
    530             for (dd = 0; dd < sh_ftype_arr[i]->length; ++dd) {
    531               fprintf(stderr, "0x%X ", sh_ftype_arr[i]->pattern[dd]);
    532             }
    533             for (dd = 0; dd < sh_ftype_arr[i]->length; ++dd) {
    534               fprintf(stderr, "0x%X ", p[dd]);
    535             }
    536             fprintf(stderr, "\n");
    537           }
    538 #endif
    539 
    540512          if (0 == memcmp(p, sh_ftype_arr[i]->pattern, sh_ftype_arr[i]->length))
    541513            {
     
    582554  long len;
    583555
    584   len = sl_read_timeout (ft, buffer, sizeof(buffer), 12, SL_TRUE);
     556  len = sl_read_timeout (ft, buffer, sizeof(buffer), 12, S_TRUE);
    585557
    586558  sl_rewind(ft);
Note: See TracChangeset for help on using the changeset viewer.