Skip to content

Commit

Permalink
more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KhankNyo committed Oct 30, 2022
1 parent 882f238 commit 431e7e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int __path_normalize(const char *at_path, const char *path, char *out, in

int path_normalize(struct fd *at, const char *path, char *out, int flags) {
assert(at != NULL);
if ((strcmp(path, "") == 0))
if (strcmp(path, "") == 0)
return _ENOENT;

// start with root or cwd, depending on whether it starts with a slash
Expand Down
2 changes: 1 addition & 1 deletion xX_main_Xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static inline int xX_main_Xx(int argc, char *const argv[], const char *envp) {
}
argv_copy[p] = '\0';
if (argv[optind] == NULL)
return _ENOENT;
return _ENOENT;
err = do_execve(argv[optind], argc - optind, argv_copy, envp == NULL ? "\0" : envp);
if (err < 0)
return err;
Expand Down

0 comments on commit 431e7e9

Please sign in to comment.