diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-10-28 07:30:36 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-10-28 07:30:36 +0000 |
commit | dc5a52b8f13af8e77898153dd0286063cbc170e7 (patch) | |
tree | 583c0124fdc4fff026238c7589e0974b22b595b3 /sbin/fsck/fsck.c | |
parent | 97159e2117ae33feb8fc7ee89990516e081faadc (diff) |
Change some TAILQ_FIRST() == NULL tests into TAILQ_EMPTY(). The first
form is valid, but in these cases its more clear to say what you
mean. ok pat@ henning@
Diffstat (limited to 'sbin/fsck/fsck.c')
-rw-r--r-- | sbin/fsck/fsck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck/fsck.c b/sbin/fsck/fsck.c index 8116662fe91..703135d04d4 100644 --- a/sbin/fsck/fsck.c +++ b/sbin/fsck/fsck.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fsck.c,v 1.20 2005/10/15 06:26:28 otto Exp $ */ +/* $OpenBSD: fsck.c,v 1.21 2005/10/28 07:30:35 otto Exp $ */ /* $NetBSD: fsck.c,v 1.7 1996/10/03 20:06:30 christos Exp $ */ /* @@ -35,7 +35,7 @@ * */ -static const char rcsid[] = "$OpenBSD: fsck.c,v 1.20 2005/10/15 06:26:28 otto Exp $"; +static const char rcsid[] = "$OpenBSD: fsck.c,v 1.21 2005/10/28 07:30:35 otto Exp $"; #include <sys/param.h> #include <sys/mount.h> @@ -140,7 +140,7 @@ main(int argc, char *argv[]) break; case 't': - if (TAILQ_FIRST(&selhead) != NULL) + if (!TAILQ_EMPTY(&selhead)) errx(1, "only one -t option may be specified."); maketypelist(optarg); |