Skip to content

Commit

Permalink
Formatting changes related to main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
fangfufu committed Jul 23, 2024
1 parent e3b2904 commit e81bd51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
- Static global variables: lower case letters
- Function names: TypeName_verb or verb_noun
- Type names: camel case with the first letter capitalised, e.g. CamelCase
- Indentation style: ``indent -kr -nut *.c *.h``
- Indentation style: run ``make format`` at the root of the repository
8 changes: 4 additions & 4 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int main(int argc, char **argv)
*/
char *base_url = argv[argc - 2];
if (strncmp(base_url, "http://", 7)
&& strncmp(base_url, "https://", 8)) {
&& strncmp(base_url, "https://", 8)) {
fprintf(stderr, "Error: Please supply a valid URL.\n");
print_help(argv[0], 0);
exit(EXIT_FAILURE);
Expand All @@ -108,7 +108,7 @@ activate Sonic mode.\n");
}
}

fuse_start:
fuse_start:
fuse_local_init(fuse_argc, fuse_argv);

return 0;
Expand Down Expand Up @@ -206,8 +206,8 @@ parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc)
{ 0, 0, 0, 0 }
};
while ((c =
getopt_long(argc, argv, short_opts, long_opts,
&long_index)) != -1) {
getopt_long(argc, argv, short_opts, long_opts,
&long_index)) != -1) {
switch (c) {
case 'o':
add_arg(fuse_argv, fuse_argc, "-o");
Expand Down

0 comments on commit e81bd51

Please sign in to comment.