Date:2012-12-31 23:28:46 (11 years 2 months ago)
Author:Werner Almesberger
Commit:0b81ffabd1ffcf728c8d5a3775abf387383fa7da
Message:swuart-chat/chat.c (main): use perror if swuart_open fails

Files: swuart-chat/chat.c (1 diff)

Change Details

swuart-chat/chat.c
8181    atexit(at_exit);
8282    raw();
8383    if (swuart_open(TX, RX, 38400) < 0) {
84        fprintf(stderr, "swuart_open failed\n");
84        perror("swuart_open");
8585        exit(1);
8686    }
8787

Archive Download the corresponding diff file

Branches:
master



interactive