diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-05 23:10:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-05 23:10:22 +0000 |
commit | 14d30f295ebf5bba8a9dd65d346ff045412d631b (patch) | |
tree | ebc0de3eede70a849e6e75b36fe867cd4efb81f0 | |
parent | a15645b237accfcba82292e4dc44ee0f080fa82d (diff) |
NULL vs 0 confusion
-rw-r--r-- | sbin/restore/restore.c | 8 |
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"); } } |