Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
fix: applied clang-tidy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edd255 committed Aug 19, 2023
1 parent 77c5c95 commit 5f3eb34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sh.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "sh.h"

#include <limits.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
Expand Down Expand Up @@ -123,6 +124,7 @@ static inline void init_prompt(prompt_t* prompt) {
|| prompt->username == NULL) {
fprintf(stderr, "sh: could not access hostname/username");
prompt->init_error = true;
return;
}
prompt->init_error = false;
}
Expand Down Expand Up @@ -174,7 +176,7 @@ void handle_cwd_error(char* file, int line, const char* fn) {
case ENAMETOOLONG: {
fprintf(
stderr,
"%s:%i - %s: The size of the null-terminated absolute pathname string exceeds %s bytes",
"%s:%i - %s: The size of the null-terminated absolute pathname string exceeds %d bytes",
file,
line,
fn,
Expand Down

0 comments on commit 5f3eb34

Please sign in to comment.