diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-04-16 18:15:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-04-16 18:15:42 +0000 |
commit | d28701e17ddbec0090e7d8cbdd9e4f7da470824a (patch) | |
tree | 533da7f179619ef5e3bc65a1052ea1da94705597 /sbin/fsck_ffs/pass5.c | |
parent | d6e26526a1929e5a5c1965fa0ec324c0a8758df8 (diff) |
Since the return value from the *_info functions is only actually used as a
boolean, make it so. OK deraadt@
Diffstat (limited to 'sbin/fsck_ffs/pass5.c')
-rw-r--r-- | sbin/fsck_ffs/pass5.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/fsck_ffs/pass5.c b/sbin/fsck_ffs/pass5.c index e098b3d9076..52695763e80 100644 --- a/sbin/fsck_ffs/pass5.c +++ b/sbin/fsck_ffs/pass5.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pass5.c,v 1.18 2005/04/16 17:37:25 deraadt Exp $ */ +/* $OpenBSD: pass5.c,v 1.19 2005/04/16 18:15:41 millert Exp $ */ /* $NetBSD: pass5.c,v 1.16 1996/09/27 22:45:18 christos Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pass5.c 8.6 (Berkeley) 11/30/94"; #else -static const char rcsid[] = "$OpenBSD: pass5.c,v 1.18 2005/04/16 17:37:25 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: pass5.c,v 1.19 2005/04/16 18:15:41 millert Exp $"; #endif #endif /* not lint */ @@ -60,10 +60,8 @@ static int info_maxcg; static int pass5_info(char *buf, int buflen) { - if (snprintf(buf, buflen, "phase 5, cg %d/%d", - info_cg, info_maxcg) > 0) - return (strlen(buf)); - return (0); + return (snprintf(buf, buflen, "phase 5, cg %d/%d", + info_cg, info_maxcg) > 0); } void |