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

Commit

Permalink
fix: made builtins var const
Browse files Browse the repository at this point in the history
  • Loading branch information
edd255 committed Aug 20, 2023
1 parent e2c334a commit 4e2c307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static int sh_launch(char** args) {

//=== BUILTINS =================================================================

static const char* builtins[] = {"cd", "help", "exit"};
static char* const builtins[] = {"cd", "help", "exit"};

static int sh_cd(char** args) {
if (args[1] == NULL) {
Expand Down

0 comments on commit 4e2c307

Please sign in to comment.