aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnet
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/fnet
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/fnet')
-rw-r--r--src/fnet/fnet.h2
-rw-r--r--src/fnet/interface.c2
-rw-r--r--src/fnet/main.c10
-rw-r--r--src/fnet/veth.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/src/fnet/fnet.h b/src/fnet/fnet.h
index c9d40ec1d..f9b09d7ea 100644
--- a/src/fnet/fnet.h
+++ b/src/fnet/fnet.h
@@ -1,4 +1,4 @@
1 /* 1/*
2 * Copyright (C) 2014-2023 Firejail Authors 2 * Copyright (C) 2014-2023 Firejail Authors
3 * 3 *
4 * This file is part of firejail project 4 * This file is part of firejail project
diff --git a/src/fnet/interface.c b/src/fnet/interface.c
index 873252d40..ca7c744ed 100644
--- a/src/fnet/interface.c
+++ b/src/fnet/interface.c
@@ -1,4 +1,4 @@
1 /* 1/*
2 * Copyright (C) 2014-2023 Firejail Authors 2 * Copyright (C) 2014-2023 Firejail Authors
3 * 3 *
4 * This file is part of firejail project 4 * This file is part of firejail project
diff --git a/src/fnet/main.c b/src/fnet/main.c
index 1c48622a0..96c4f1478 100644
--- a/src/fnet/main.c
+++ b/src/fnet/main.c
@@ -1,4 +1,4 @@
1 /* 1/*
2 * Copyright (C) 2014-2023 Firejail Authors 2 * Copyright (C) 2014-2023 Firejail Authors
3 * 3 *
4 * This file is part of firejail project 4 * This file is part of firejail project
@@ -47,7 +47,7 @@ static void usage(void) {
47 printf("\tfnet config mac addr\n"); 47 printf("\tfnet config mac addr\n");
48 printf("\tfnet config ipv6 dev ip\n"); 48 printf("\tfnet config ipv6 dev ip\n");
49 printf("\tfnet ifup dev\n"); 49 printf("\tfnet ifup dev\n");
50 printf("\tfnet waitll dev\n"); 50 printf("\tfnet waitll dev\n");
51} 51}
52 52
53int main(int argc, char **argv) { 53int main(int argc, char **argv) {
@@ -144,9 +144,9 @@ printf("\n");
144 else if (argc == 5 && strcmp(argv[1], "config") == 0 && strcmp(argv[2], "ipv6") == 0) { 144 else if (argc == 5 && strcmp(argv[1], "config") == 0 && strcmp(argv[2], "ipv6") == 0) {
145 net_if_ip6(argv[3], argv[4]); 145 net_if_ip6(argv[3], argv[4]);
146 } 146 }
147 else if (argc == 3 && strcmp(argv[1], "waitll") == 0) { 147 else if (argc == 3 && strcmp(argv[1], "waitll") == 0) {
148 net_if_waitll(argv[2]); 148 net_if_waitll(argv[2]);
149 } 149 }
150 else { 150 else {
151 fprintf(stderr, "Error fnet: invalid arguments\n"); 151 fprintf(stderr, "Error fnet: invalid arguments\n");
152 return 1; 152 return 1;
diff --git a/src/fnet/veth.c b/src/fnet/veth.c
index 2a23c6bd4..2111cfa56 100644
--- a/src/fnet/veth.c
+++ b/src/fnet/veth.c
@@ -24,8 +24,8 @@
24 * 24 *
25 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> 25 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
26 * 26 *
27 */ 27*/
28 /* 28/*
29 * Copyright (C) 2014-2023 Firejail Authors 29 * Copyright (C) 2014-2023 Firejail Authors
30 * 30 *
31 * This file is part of firejail project 31 * This file is part of firejail project