diff options
author | John Ankarström <john@ankarstrom.se> | 2019-01-10 00:40:04 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2019-01-10 00:40:04 +0100 |
commit | 68c4e104ba345bd7131dfa404f63e2176bff965e (patch) | |
tree | 7d8273a0d76cf369bee22aa732704d30b9794cff | |
parent | 3ba955ff8cdafd49d6bebcdef0790e3bcce98508 (diff) | |
download | repl-68c4e104ba345bd7131dfa404f63e2176bff965e.tar.gz |
spaces -> tabs
-rw-r--r-- | repl.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -30,14 +30,14 @@ int main(int argc, char *argv[]) { rl_clear_signals(); while (true) { - char *input = readline(prompt); + char *input = readline(prompt); if (input == NULL) { /* ctrl-d */ printf("\n"); break; } - - add_history(input); + + add_history(input); int size = strlen(argv[1]) + 1 + strlen(input) + 1; char *command = malloc(size); @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) { system(command); - free(input); + free(input); } - return 0; + return 0; } |