X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.c;h=7f64ebad916ffd831a5c8c590072250459953cb3;hb=37d98521accb35a10b20d10df8b4a9af806cc1b0;hp=4746d0190c37dc67a125ea92c4916860b627b522;hpb=fe604458bc7b1b8e74fc9f070f9a68fe89e1208c;p=selector.git diff --git a/selector.c b/selector.c index 4746d01..7f64eba 100644 --- a/selector.c +++ b/selector.c @@ -76,7 +76,7 @@ int attr_modeline, attr_focus_line, attr_error; void *safe_malloc(size_t n) { void *p = malloc(n); - if (!p && n != 0) { + if(!p && n != 0) { fprintf(stderr, "selector: can not allocate memory: %s\n", strerror(errno)); exit(EXIT_FAILURE); @@ -291,7 +291,8 @@ int add_and_get_previous_index(struct hash_table_t *hash_table, /* We came back to our original code, which means that the table is full */ if(code == start) { - printf("Full hash table (that should not happen)\n"); + fprintf(stderr, + "Full hash table (that should not happen)\n"); exit(EXIT_FAILURE); } } @@ -1222,7 +1223,7 @@ int main(int argc, char **argv) { /* Here we come back to standard display */ - if((key == KEY_ENTER || key == '\n')) { + if(key == KEY_ENTER || key == '\n') { char *t;