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);
/* 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);
}
}
/* Here we come back to standard display */
- if((key == KEY_ENTER || key == '\n')) {
+ if(key == KEY_ENTER || key == '\n') {
char *t;