From 971b504bceae6a5a87d6065960195bb349d38cd7 Mon Sep 17 00:00:00 2001 From: Robert Drehmel Date: Wed, 24 Jul 2002 18:54:59 +0000 Subject: [PATCH] style(9): - Put a space after the 'return' keyword. - Wrap lines longer than 80 characters. --- usr.bin/biff/biff.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c index cfb1d638a476..c04c8d39f9fa 100644 --- a/usr.bin/biff/biff.c +++ b/usr.bin/biff/biff.c @@ -84,27 +84,29 @@ main(int argc, char *argv[]) (void)printf("is %s\n", sb.st_mode & S_IXUSR ? "y" : sb.st_mode & S_IXGRP ? "b" : "n"); - return(sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1); + return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1); } - switch(argv[0][0]) { + switch (argv[0][0]) { case 'n': if (chmod(name, sb.st_mode & ~(S_IXUSR | S_IXGRP)) < 0) err(2, "%s", name); break; case 'y': - if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXUSR) < 0) + if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXUSR) + < 0) err(2, "%s", name); break; case 'b': - if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXGRP) < 0) + if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXGRP) + < 0) err(2, "%s", name); break; default: usage(); } - return(sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1); + return (sb.st_mode & (S_IXUSR | S_IXGRP) ? 0 : 1); } static void