aboutsummaryrefslogtreecommitdiffstats
path: root/src/fldd
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-19 17:57:48 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-20 18:02:37 -0300
commitab1f8af8d0ac1ff8466d8758dc11d06dbfe8df25 (patch)
tree7ff503cf1ad951be3c2dc88caea1f4e1d6c70699 /src/fldd
parent*.sh: use consistent indentation (diff)
downloadfirejail-ab1f8af8d0ac1ff8466d8758dc11d06dbfe8df25.tar.gz
firejail-ab1f8af8d0ac1ff8466d8758dc11d06dbfe8df25.tar.zst
firejail-ab1f8af8d0ac1ff8466d8758dc11d06dbfe8df25.zip
Fix inconsistent leading spaces
Changes: * Fix spaces being used for indentation in some lines in C * Remove leading spaces before some goto labels * Remove leading spaces before the start of some multiline comments * Change leading spaces to tabs in some multiline macros * Add missing asterisk to some multiline comments (to match other multiline comments and because they are false positives in the commands below) Note: Leading spaces can be used for alignment (such as in function parameters and function arguments in C) and for line continuation (such as in long commands in shell scripts). However, in the above changes the leading spaces are used for other reasons and do not seem to fit with the style used. Commands used to search for errors: $ git grep -In '^ [^*]' | grep -E -v \ -e '(COPYING|README|RELNOTES|configure(.ac)?):' \ -e '^[^:]+.(md|yml|py):' -e '(bash|zsh)_completion/' \ -e '^contrib/syntax/' -e '^etc/templates/.*\.txt:' -e '^m4/' \ -e '^platform/debian/' -e '^src/man/.*\.txt:' \ -e '.*mkrpm.sh:' -e '.*extract_errnos.sh:'
Diffstat (limited to 'src/fldd')
-rw-r--r--src/fldd/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fldd/main.c b/src/fldd/main.c
index 390f7a1bc..4b645b1b3 100644
--- a/src/fldd/main.c
+++ b/src/fldd/main.c
@@ -193,9 +193,9 @@ static void parse_elf(const char *exe) {
193 } 193 }
194 goto close; 194 goto close;
195 195
196 error_close: 196error_close:
197 perror("copy libs"); 197 perror("copy libs");
198 close: 198close:
199 if (base) 199 if (base)
200 munmap(base, s.st_size); 200 munmap(base, s.st_size);
201 201
@@ -295,7 +295,7 @@ int main(int argc, char **argv) {
295//system("cat /proc/self/status"); 295//system("cat /proc/self/status");
296int i; 296int i;
297for (i = 0; i < argc; i++) 297for (i = 0; i < argc; i++)
298 printf("*%s* ", argv[i]); 298 printf("*%s* ", argv[i]);
299printf("\n"); 299printf("\n");
300} 300}
301#endif 301#endif