Date: Wed, 19 Dec 2012 23:29:47 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r244449 - projects/mtree/contrib/mtree Message-ID: <201212192329.qBJNTliI012071@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brooks Date: Wed Dec 19 23:29:47 2012 New Revision: 244449 URL: http://svnweb.freebsd.org/changeset/base/244449 Log: Remove a couple compile time FreeBSD output compatibility bits to be replaced with runtime ones. Modified: projects/mtree/contrib/mtree/create.c Modified: projects/mtree/contrib/mtree/create.c ============================================================================== --- projects/mtree/contrib/mtree/create.c Wed Dec 19 23:27:23 2012 (r244448) +++ projects/mtree/contrib/mtree/create.c Wed Dec 19 23:29:47 2012 (r244449) @@ -147,13 +147,8 @@ cwalk(void) if (!nflag) printf("%*s# %s\n", indent, "", p->fts_path); -#ifdef __FreeBSD__ - } - if (1) { -#endif printf("%*s..\n\n", indent, ""); } - break; case FTS_DNR: case FTS_ERR: @@ -217,11 +212,7 @@ statf(int indent, FTSENT *p) (long long)p->fts_statp->st_rdev); if (keys & F_NLINK && p->fts_statp->st_nlink != 1) output(indent, &offset, "nlink=%u", p->fts_statp->st_nlink); -#ifndef __FreeBSD__ if (keys & F_SIZE && S_ISREG(p->fts_statp->st_mode)) -#else - if (keys & F_SIZE) -#endif output(indent, &offset, "size=%lld", (long long)p->fts_statp->st_size); if (keys & F_TIME)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212192329.qBJNTliI012071>