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:
parent
4ca470d666
commit
971b504bce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100627
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user