]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Add `_PATH_DEVZERO'.
authorDavid E. O'Brien <obrien@FreeBSD.org>
Sat, 9 Dec 2000 09:35:55 +0000 (09:35 +0000)
committerDavid E. O'Brien <obrien@FreeBSD.org>
Sat, 9 Dec 2000 09:35:55 +0000 (09:35 +0000)
Use _PATH_* where where possible.

pw/pw.c

diff --git a/pw/pw.c b/pw/pw.c
index d854c923a09800bc485cdde3665c8bfa8471d083..ca3a10abaf0f1c9113f18f221f6f53aa190ba8b5 100644 (file)
--- a/pw/pw.c
+++ b/pw/pw.c
@@ -206,7 +206,7 @@ main(int argc, char *argv[])
         * don't bother with extraneous errors
         */
        if (getarg(&arglist, 'q') != NULL)
-               freopen("/dev/null", "w", stderr);
+               freopen(_PATH_DEVNULL, "w", stderr);
 
        /*
         * Set our base working path if not overridden