1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

style(9): - Put a space after the 'return' keyword.

- Wrap lines longer than 80 characters.
This commit is contained in:
Robert Drehmel 2002-07-24 18:54:59 +00:00
parent 4ca470d666
commit 971b504bce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100627

View File

@ -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