diff options
author | 2020-01-27 21:04:35 +0100 | |
---|---|---|
committer | 2020-01-27 21:04:35 +0100 | |
commit | a7e6138ad09e77a8792a03640a43660a063a1e2d (patch) | |
tree | afae50ccb705f56851aece3d92757e457dfbbfc3 /src/firejail/profile.c | |
parent | clarify dropping python2 support in meld.profile (#3167) (diff) | |
download | firejail-a7e6138ad09e77a8792a03640a43660a063a1e2d.tar.gz firejail-a7e6138ad09e77a8792a03640a43660a063a1e2d.tar.zst firejail-a7e6138ad09e77a8792a03640a43660a063a1e2d.zip |
Fix indentation for dhcp client code
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r-- | src/firejail/profile.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index b77d03d3f..969209869 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -701,19 +701,19 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
701 | exit(1); | 701 | exit(1); |
702 | } | 702 | } |
703 | 703 | ||
704 | // configure this IP address for the last bridge defined | 704 | // configure this IP address for the last bridge defined |
705 | if (strcmp(ptr + 4, "dhcp") == 0) | 705 | if (strcmp(ptr + 4, "dhcp") == 0) |
706 | br->arg_ip6_dhcp = 1; | 706 | br->arg_ip6_dhcp = 1; |
707 | else { | 707 | else { |
708 | if (check_ip46_address(ptr + 4) == 0) { | 708 | if (check_ip46_address(ptr + 4) == 0) { |
709 | fprintf(stderr, "Error: invalid IPv6 address\n"); | 709 | fprintf(stderr, "Error: invalid IPv6 address\n"); |
710 | exit(1); | 710 | exit(1); |
711 | } | 711 | } |
712 | 712 | ||
713 | br->ip6sandbox = strdup(ptr + 4); | 713 | br->ip6sandbox = strdup(ptr + 4); |
714 | if (br->ip6sandbox == NULL) | 714 | if (br->ip6sandbox == NULL) |
715 | errExit("strdup"); | 715 | errExit("strdup"); |
716 | } | 716 | } |
717 | } | 717 | } |
718 | else | 718 | else |
719 | warning_feature_disabled("networking"); | 719 | warning_feature_disabled("networking"); |