aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-05-25 13:52:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-05-25 13:52:13 +0200
commitaa4b4391f3f04dd2864fd068a603673cc44135a8 (patch)
tree77d1d1ceb32bfd8896f295ea8167458ccd39b959
parent6cce0e5595b87a35ac01320fced5bd699b55a20f (diff)
downloadell-aa4b4391f3f04dd2864fd068a603673cc44135a8.tar.gz
ell-aa4b4391f3f04dd2864fd068a603673cc44135a8.tar.xz
ell-aa4b4391f3f04dd2864fd068a603673cc44135a8.zip
Cleanup
-rw-r--r--ell.c4
-rw-r--r--repl.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ell.c b/ell.c
index 9cb77aa..9eefbc9 100644
--- a/ell.c
+++ b/ell.c
@@ -792,9 +792,9 @@ execute_item (struct context *ctx, struct item *body, struct item **result) {
if (!evaluated)
return true;
- bool success = execute_resolved (ctx, evaluated, args, result);
+ bool ok = execute_resolved (ctx, evaluated, args, result);
item_free_list (evaluated);
- return success;
+ return ok;
}
static bool
diff --git a/repl.c b/repl.c
index 95a09a5..f14e24f 100644
--- a/repl.c
+++ b/repl.c
@@ -53,6 +53,9 @@ struct context ctx;
static char **
complete (const char *text, int start, int end) {
+ (void) start;
+ (void) end;
+
// Don't iterate over filenames and stuff
rl_attempted_completion_over = true;