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/pass1.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/pass1.c')
-rw-r--r-- | sbin/fsck_ffs/pass1.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c index cb59f878992..1c00810d712 100644 --- a/sbin/fsck_ffs/pass1.c +++ b/sbin/fsck_ffs/pass1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pass1.c,v 1.16 2005/04/16 17:37:25 deraadt Exp $ */ +/* $OpenBSD: pass1.c,v 1.17 2005/04/16 18:15:41 millert Exp $ */ /* $NetBSD: pass1.c,v 1.16 1996/09/27 22:45:15 christos Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pass1.c 8.1 (Berkeley) 6/5/93"; #else -static const char rcsid[] = "$OpenBSD: pass1.c,v 1.16 2005/04/16 17:37:25 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: pass1.c,v 1.17 2005/04/16 18:15:41 millert Exp $"; #endif #endif /* not lint */ @@ -61,10 +61,8 @@ static ino_t info_inumber; static int pass1_info(char *buf, int buflen) { - if (snprintf(buf, buflen, "phase 1, inode %d/%d", - info_inumber, sblock.fs_ipg * sblock.fs_ncg) > 0) - return (strlen(buf)); - return (0); + return (snprintf(buf, buflen, "phase 1, inode %d/%d", + info_inumber, sblock.fs_ipg * sblock.fs_ncg) > 0); } void |