summaryrefslogtreecommitdiffstats
path: root/usr.bin/biff
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-07-24 18:54:59 +0000
committerrobert <robert@FreeBSD.org>2002-07-24 18:54:59 +0000
commitaa7e4582e3a7507214f9120efffbcdee5c6f6914 (patch)
treee165fcfbc2953d4f404a90b8e813cf0215aad322 /usr.bin/biff
parenta0562d21320bef45836757028af26cf946641772 (diff)
downloadFreeBSD-src-aa7e4582e3a7507214f9120efffbcdee5c6f6914.zip
FreeBSD-src-aa7e4582e3a7507214f9120efffbcdee5c6f6914.tar.gz
style(9): - Put a space after the 'return' keyword.
- Wrap lines longer than 80 characters.
Diffstat (limited to 'usr.bin/biff')
-rw-r--r--usr.bin/biff/biff.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c
index cfb1d63..c04c8d3 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
OpenPOWER on IntegriCloud