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 | ||
---|---|---|
81 | 81 | atexit(at_exit); |
82 | 82 | raw(); |
83 | 83 | if (swuart_open(TX, RX, 38400) < 0) { |
84 | fprintf(stderr, "swuart_open failed\n"); | |
84 | perror("swuart_open"); | |
85 | 85 | exit(1); |
86 | 86 | } |
87 | 87 |
Branches:
master