summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2005-04-28 07:13:01 +0000
committerotto <otto@openbsd.org>2005-04-28 07:13:01 +0000
commitd29e2dcd6702457073d2a6b8f16bea0f9dfff02c (patch)
tree749991544d2faff1bd86f0392493822cf20a0f50
parentplace this file in the public domain (diff)
downloadwireguard-openbsd-d29e2dcd6702457073d2a6b8f16bea0f9dfff02c.tar.xz
wireguard-openbsd-d29e2dcd6702457073d2a6b8f16bea0f9dfff02c.zip
NULL is not an int. Han Boetes.
-rw-r--r--usr.bin/mg/dired.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/dired.c b/usr.bin/mg/dired.c
index e08c41e71ed..929bbc29f59 100644
--- a/usr.bin/mg/dired.c
+++ b/usr.bin/mg/dired.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dired.c,v 1.15 2005/04/03 02:09:28 db Exp $ */
+/* $OpenBSD: dired.c,v 1.16 2005/04/28 07:13:01 otto Exp $ */
/* dired module for mg 2a */
/* by Robert A. Larson */
@@ -311,7 +311,7 @@ d_copy(int f, int n)
EFNEW | EFCR, basename(frname))) == NULL)
return (ABORT);
else if (bufp[0] == '\0')
- return (NULL);
+ return (0);
stat = (copy(frname, toname) >= 0) ? TRUE : FALSE;
if (stat != TRUE)
return (stat);