From: Jim Meyering Date: Fri, 3 Oct 1997 02:44:33 +0000 (+0000) Subject: (fspec_init_dp): Use DTTOIF. Fix syntax error in code X-Git-Tag: TEXTUTILS-1_22c~317 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8cf858306cb783768c2d85e0abdfe7a7e9f8c18;p=thirdparty%2Fcoreutils.git (fspec_init_dp): Use DTTOIF. Fix syntax error in code that gets compiled on BSDI3.0 systems. --- diff --git a/src/rm.c b/src/rm.c index 33b679de32..75282585ca 100644 --- a/src/rm.c +++ b/src/rm.c @@ -466,11 +466,11 @@ fspec_init_dp (struct File_spec *fs, struct dirent *dp) fs->have_filetype_mode = 0; fs->inum = D_INO (dp); -#if D_TYPE_IN_DIRENT && defined (DT_UNKNOWN) - if (filetype_mode != DT_UNKNOWN) +#if D_TYPE_IN_DIRENT && defined (DT_UNKNOWN) && defined (DTTOIF) + if (dp->d_type != DT_UNKNOWN) { fs->have_filetype_mode = 1; - fs->mode = filetype_mode; + fs->mode = DTTOIF (dp->d_type); } #endif }