Skip to content
Snippets Groups Projects
Commit 1e7372de authored by Krasimir Balchev's avatar Krasimir Balchev
Browse files

Converted tabs to 4 spaces.

parent eb1108b8
No related branches found
No related tags found
No related merge requests found
......@@ -247,12 +247,12 @@ void print_aliases() {
int numberOfAliases = 0;
// Print alises if they exist
for (int i = 0; i < MAX_ALIASES; i++) {
if (aliases[i].key == NULL) {
continue;
}
for (int i = 0; i < MAX_ALIASES; i++) {
if (aliases[i].key == NULL) {
continue;
}
int j = 0;
int j = 0;
printf("Alias `%s` set to `", aliases[i].key);
while (aliases[i].command[j] != NULL) {
if (j > 0) {
......@@ -264,8 +264,8 @@ void print_aliases() {
}
printf("`\n");
numberOfAliases++;
}
numberOfAliases++;
}
// If no aliases exist, print a message.
if(numberOfAliases < 1) {
......@@ -343,7 +343,7 @@ int execute_unalias_cmnd(String arguments[]) {
if(aliases[i].key != NULL && strcmp(aliases[i].key, arguments[1]) == 0) {
free(aliases[i].key);
free_array(aliases[i].command);
aliases[i].key = NULL;
aliases[i].key = NULL;
isFound = true;
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment