summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2003-05-08 12:37:14 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2003-05-08 12:37:14 +0000
commit9ad8b19e0518036d927fee1a2c85dee61fe622ee (patch)
treea1f36282e5ea4dae9ece9c24e7b670b267daaf8a /usr.bin/mg
parent867845811eecb1aac0a307b16be214b0991d0564 (diff)
use NULL to indicate failure in functions that return pointers, not FALSE.
typo in comment from Patrick Latifi (patrick.l@hermes.usherb.ca)
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/fileio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/mg/fileio.c b/usr.bin/mg/fileio.c
index 5498b049bd4..0b903e412cd 100644
--- a/usr.bin/mg/fileio.c
+++ b/usr.bin/mg/fileio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fileio.c,v 1.35 2003/05/06 10:45:07 vincent Exp $ */
+/* $OpenBSD: fileio.c,v 1.36 2003/05/08 12:37:13 vincent Exp $ */
/*
* POSIX fileio.c
@@ -106,7 +106,7 @@ ffputbuf(BUFFER *bp)
lpend = bp->b_linep;
lp = lforw(lpend);
do {
- cp = &ltext(lp)[0]; /* begining of line */
+ cp = &ltext(lp)[0]; /* beginning of line */
cpend = &cp[llength(lp)]; /* end of line */
while (cp != cpend) {
putc(*cp, ffp);
@@ -399,7 +399,7 @@ dired_(char *dirname)
return NULL;
}
if (bclear(bp) != TRUE)
- return FALSE;
+ return NULL;
bp->b_flag |= BFREADONLY;
if (snprintf(line, sizeof(line), "ls -al %s", dirname) >= sizeof(line)){
ewprintf("Path too long");
@@ -496,7 +496,7 @@ make_file_list(char *buf)
} else
dir = adjustname(buf);
if (dir == NULL)
- return (FALSE);
+ return (NULL);
/*
* If the user typed a trailing / or the empty string
* he wants us to use his file spec as a directory name.