diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2013-04-12 20:48:55 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2013-04-12 20:48:55 +0000 |
commit | 69e6d7b75e96c406d072cb83ffc9b26fbf1a86fb (patch) | |
tree | 54038c9ac32a45f8741dcc23fb9a8ffc0e15ff89 /bin/chflags | |
parent | 51048477bcc79bcc8753121ec91c150648df3d1b (diff) | |
parent | 8818042ff2ecd155adb5c248a22de2dbe5d9c2a9 (diff) | |
download | src-69e6d7b75e96c406d072cb83ffc9b26fbf1a86fb.tar.gz src-69e6d7b75e96c406d072cb83ffc9b26fbf1a86fb.zip |
Notes
Diffstat (limited to 'bin/chflags')
-rw-r--r-- | bin/chflags/chflags.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c index 2c07db9becc4..e94c34df6eb1 100644 --- a/bin/chflags/chflags.c +++ b/bin/chflags/chflags.c @@ -117,11 +117,7 @@ main(int argc, char *argv[]) } else fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL; - /* XXX: Why don't chflags and lchflags have compatible prototypes? */ - if (hflag) - change_flags = (int (*)(const char *, unsigned long))lchflags; - else - change_flags = chflags; + change_flags = hflag ? lchflags : chflags; flags = *argv; if (*flags >= '0' && *flags <= '7') { |