summaryrefslogtreecommitdiff
path: root/sbin/restore/restore.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-05 23:10:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-05 23:10:22 +0000
commit14d30f295ebf5bba8a9dd65d346ff045412d631b (patch)
treeebc0de3eede70a849e6e75b36fe867cd4efb81f0 /sbin/restore/restore.c
parenta15645b237accfcba82292e4dc44ee0f080fa82d (diff)
NULL vs 0 confusion
Diffstat (limited to 'sbin/restore/restore.c')
-rw-r--r--sbin/restore/restore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/restore/restore.c b/sbin/restore/restore.c
index 0a9225f21c5..d3cc9a94963 100644
--- a/sbin/restore/restore.c
+++ b/sbin/restore/restore.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: restore.c,v 1.4 1997/07/05 20:51:24 millert Exp $ */
+/* $OpenBSD: restore.c,v 1.5 1997/07/05 23:10:21 deraadt Exp $ */
/* $NetBSD: restore.c,v 1.9 1997/06/18 07:10:16 lukem Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)restore.c 8.3 (Berkeley) 9/13/94";
#else
-static char rcsid[] = "$OpenBSD: restore.c,v 1.4 1997/07/05 20:51:24 millert Exp $";
+static char rcsid[] = "$OpenBSD: restore.c,v 1.5 1997/07/05 23:10:21 deraadt Exp $";
#endif
#endif /* not lint */
@@ -475,7 +475,7 @@ nodeupdates(name, ino, type)
* for it, we discard the name knowing that it will be on the
* next incremental tape.
*/
- case NULL:
+ case 0:
fprintf(stderr, "%s: (inode %d) not found on tape\n",
name, ino);
break;
@@ -825,7 +825,7 @@ checkrestore()
ep->e_flags &= ~KEEP;
if (ep->e_type == NODE)
ep->e_flags &= ~(NEW|EXISTED);
- if (ep->e_flags != NULL)
+ if (ep->e_flags != 0)
badentry(ep, "incomplete operations");
}
}