X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client.c;h=a6aee0f8b9afc79439032db3695ba9c82bb594a1;hb=b0a87fd7b5aeb8007afd3ac25d8548543d42080c;hp=827ff215dbf68446f90da4575dd32ebb3ed93a35;hpb=e3a7e12639c34fd86d48a072beb48add8c498d09;p=paraslash.git diff --git a/client.c b/client.c index 827ff215..a6aee0f8 100644 --- a/client.c +++ b/client.c @@ -246,6 +246,12 @@ I9E_DUMMY_COMPLETER(init); static struct i9e_completer completers[]; +static void ll_completer(struct i9e_completion_info *ci, + struct i9e_completion_result *cr) +{ + i9e_ll_completer(ci, cr); +} + static void help_completer(struct i9e_completion_info *ci, struct i9e_completion_result *cr) { @@ -341,7 +347,7 @@ static void setatt_completer(struct i9e_completion_info *ci, if (ret < 0) goto out; num_atts = ret; - sl = para_realloc(sl, (2 * num_atts + 1) * sizeof(char *)); + sl = arr_realloc(sl, 2 * num_atts + 1, sizeof(char *)); for (i = 0; i < num_atts; i++) { char *orig = sl[i]; sl[i] = make_message("%s+", orig); @@ -435,7 +441,7 @@ static void select_completer(struct i9e_completion_info *ci, goto free_moods; num_pl = ret; n = num_moods + num_pl; - mops = para_malloc((n + 1) * sizeof(char *)); + mops = arr_alloc(n + 1, sizeof(char *)); for (i = 0; i < num_moods; i++) mops[i] = make_message("m/%s", moods[i]); for (i = 0; i < num_pl; i++) @@ -532,7 +538,7 @@ __noreturn static void interactive_session(void) sigemptyset(&act.sa_mask); act.sa_flags = 0; sigaction(SIGINT, &act, NULL); - sched.select_function = i9e_select; + sched.poll_function = i9e_poll; ret = i9e_open(&ici, &sched); if (ret < 0)