aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2023-08-13 13:56:29 -0700
committerAndrew G. Morgan <morgan@kernel.org>2023-08-13 13:56:29 -0700
commit65851358069f51e15a1931cf8ad17f863940e4d4 (patch)
treee19ab66198a462b9b8b2b337c010458470a6e404
parent4ffb54079cde63894292b67c5cf1b62deb02a330 (diff)
downloadlibcap-65851358069f51e15a1931cf8ad17f863940e4d4.tar.gz
Restore c89 compaitbility for C source files.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--progs/setcap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/setcap.c b/progs/setcap.c
index 79cd2ce..5bbd195 100644
--- a/progs/setcap.c
+++ b/progs/setcap.c
@@ -169,8 +169,8 @@ int main(int argc, char **argv)
text = *argv;
}
- int non_space = 0;
- for (int j = 0; text[j]; j++) {
+ int non_space = 0, j;
+ for (j = 0; text[j]; j++) {
if (!isspace(text[j])) {
non_space = 1;
break;
@@ -264,7 +264,7 @@ int main(int argc, char **argv)
}
#ifdef linux
{
- // Linux's file capabilities have a compressed representation.
+ /* Linux's file capabilities have a compressed representation. */
int explained = 0;
int somebits = 0;
cap_value_t cap;