Project

General

Profile

Actions

Bug #1150

closed

libcmdutils has superfluous #define

Added by Jason King about 11 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Low
Category:
lib - userland libraries
Start date:
2011-06-25
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

usr/src/lib/libcmdutils.h has the following define:

#define ISREG(A) (((A).st_mode & S_IFMT) == S_IFREG)

This is largely unneeded and S_ISREG is probably a better choice.

Actions

Also available in: Atom PDF