]> Dogcows Code - chaz/tar/commitdiff
Remove S_IS* ifdefs.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 20 Jul 1999 07:09:27 +0000 (07:09 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 20 Jul 1999 07:09:27 +0000 (07:09 +0000)
src/list.c

index c58eae41b44f082b2c5ac03938c5540297c1a0f8..0c1e886c4b04a612d6c2d5bce757f717796fb723 100644 (file)
@@ -507,21 +507,17 @@ decode_header (union block *header, struct stat *stat_info,
        }
       switch (header->header.typeflag)
        {
-#ifdef S_ISBLK
        case BLKTYPE:
          stat_info->st_rdev
            = makedev (MAJOR_FROM_OCT (header->header.devmajor),
                       MINOR_FROM_OCT (header->header.devminor));
          break;
-#endif
 
-#ifdef S_ISCHR
        case CHRTYPE:
          stat_info->st_rdev
            = makedev (MAJOR_FROM_OCT (header->header.devmajor),
                       MINOR_FROM_OCT (header->header.devminor));
          break;
-#endif
 
        default:
          stat_info->st_rdev = 0;
@@ -874,14 +870,12 @@ print_header (void)
 
       switch (current_header->header.typeflag)
        {
-#if defined S_ISBLK || defined S_ISCHR
        case CHRTYPE:
        case BLKTYPE:
          sprintf (size, "%lu,%lu",
                   (unsigned long) major (current_stat.st_rdev),
                   (unsigned long) minor (current_stat.st_rdev));
          break;
-#endif
        case GNUTYPE_SPARSE:
          strcpy (size,
                  STRINGIFY_BIGINT
This page took 0.023334 seconds and 4 git commands to generate.