diff options
author | Gleydson Soares <gsoares@cvs.openbsd.org> | 2012-11-14 13:22:38 +0000 |
---|---|---|
committer | Gleydson Soares <gsoares@cvs.openbsd.org> | 2012-11-14 13:22:38 +0000 |
commit | 192d99a946f3b351c1ee71860cf315fe2e94b329 (patch) | |
tree | c4df091f5c973413c2514af850fefbc12934bcd1 /usr.bin/mail/cmd2.c | |
parent | 98a5860728eeacf24069ce066f6f02fe28f7b04b (diff) |
use F_OK macro instead of 0 in access() when checking by file existence. make the code easier to read.
no functional change.
OK millert@
Diffstat (limited to 'usr.bin/mail/cmd2.c')
-rw-r--r-- | usr.bin/mail/cmd2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/cmd2.c b/usr.bin/mail/cmd2.c index 40944212eef..3a472871f74 100644 --- a/usr.bin/mail/cmd2.c +++ b/usr.bin/mail/cmd2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd2.c,v 1.18 2011/04/06 11:36:26 miod Exp $ */ +/* $OpenBSD: cmd2.c,v 1.19 2012/11/14 13:22:37 gsoares Exp $ */ /* $NetBSD: cmd2.c,v 1.7 1997/05/17 19:55:10 pk Exp $ */ /* @@ -166,7 +166,7 @@ save1(char *str, int mark, char *cmd, struct ignoretab *ignore) return(1); printf("\"%s\" ", file); fflush(stdout); - if (access(file, 0) >= 0) + if (access(file, F_OK) >= 0) disp = "[Appended]"; else disp = "[New file]"; |