aboutsummaryrefslogtreecommitdiffstats
path: root/src/profstats
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-19 14:26:15 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-20 17:39:31 -0300
commit490051f71494e828f2020257c012c3b28398d852 (patch)
treee565f37c36d9573dd9d95c2028361012f1132989 /src/profstats
parent.gitattributes: mark some binary files as such (diff)
downloadfirejail-490051f71494e828f2020257c012c3b28398d852.tar.gz
firejail-490051f71494e828f2020257c012c3b28398d852.tar.zst
firejail-490051f71494e828f2020257c012c3b28398d852.zip
Fix space before/after tab in indent
This fixes all of the "space before tab in indent" errors raised by git: $ git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904..HEAD | grep '^[^+]' | cut -f 3 -d : | LC_ALL=C sort | uniq -c 72 space before tab in indent. Commands used to find the errors: $ git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904..HEAD $ git grep -In "$(printf '\t') " Note: Unlike "space before tab in indent", the reverse ("space after tab in indent") is not reported by git. That is because spaces could be intentionally used for alignment or line continuation, but in some cases they are being used for indentation together with tabs and in others the formatting is misaligned. The second command was used to help find and fix these other issues.
Diffstat (limited to 'src/profstats')
-rw-r--r--src/profstats/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/profstats/main.c b/src/profstats/main.c
index 90a5f405d..491cec736 100644
--- a/src/profstats/main.c
+++ b/src/profstats/main.c
@@ -166,7 +166,7 @@ static void process_file(char *fname) {
166 else if (strncmp(ptr, "include whitelist-var-common.inc", 32) == 0) 166 else if (strncmp(ptr, "include whitelist-var-common.inc", 32) == 0)
167 cnt_whitelistvar++; 167 cnt_whitelistvar++;
168 else if (strncmp(ptr, "include whitelist-runuser-common.inc", 36) == 0 || 168 else if (strncmp(ptr, "include whitelist-runuser-common.inc", 36) == 0 ||
169 strncmp(ptr, "blacklist ${RUNUSER}", 20) == 0) 169 strncmp(ptr, "blacklist ${RUNUSER}", 20) == 0)
170 cnt_whitelistrunuser++; 170 cnt_whitelistrunuser++;
171 else if (strncmp(ptr, "include whitelist-common.inc", 28) == 0) 171 else if (strncmp(ptr, "include whitelist-common.inc", 28) == 0)
172 cnt_whitelisthome++; 172 cnt_whitelisthome++;
@@ -283,10 +283,10 @@ int main(int argc, char **argv) {
283 arg_dbus_user_none = 1; 283 arg_dbus_user_none = 1;
284 else if (*argv[i] == '-') { 284 else if (*argv[i] == '-') {
285 fprintf(stderr, "Error: invalid option %s\n", argv[i]); 285 fprintf(stderr, "Error: invalid option %s\n", argv[i]);
286 return 1; 286 return 1;
287 } 287 }
288 else 288 else
289 break; 289 break;
290 } 290 }
291 291
292 start = i; 292 start = i;