summaryrefslogtreecommitdiffstats
path: root/usr.bin/biff
diff options
context:
space:
mode:
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