diff options
author | 2023-02-19 17:57:48 -0300 | |
---|---|---|
committer | 2023-02-20 18:02:37 -0300 | |
commit | ab1f8af8d0ac1ff8466d8758dc11d06dbfe8df25 (patch) | |
tree | 7ff503cf1ad951be3c2dc88caea1f4e1d6c70699 /src/fcopy | |
parent | *.sh: use consistent indentation (diff) | |
download | firejail-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/fcopy')
-rw-r--r-- | src/fcopy/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c index da24fb3f7..ce2efb295 100644 --- a/src/fcopy/main.c +++ b/src/fcopy/main.c | |||
@@ -92,7 +92,7 @@ static void selinux_relabel_path(const char *path, const char *inside_path) { | |||
92 | printf("Cannot relabel %s: %s\n", path, strerror(errno)); | 92 | printf("Cannot relabel %s: %s\n", path, strerror(errno)); |
93 | } | 93 | } |
94 | freecon(fcon); | 94 | freecon(fcon); |
95 | close: | 95 | close: |
96 | close(fd); | 96 | close(fd); |
97 | #else | 97 | #else |
98 | (void) path; | 98 | (void) path; |