summaryrefslogtreecommitdiffstats
path: root/term-utils/ttymsg.c
Commit message (Collapse)AuthorAgeFilesLines
* misc: safer (and uniform) handling of return valueYuriy M. Kaminskiy2016-03-071-4/+4
| | | | | | When `rc` is `INT_MAX`, `rc + 1` result in signed integer overflow. Signed-off-by: Karel Zak <kzak@redhat.com>
* term-utils: avoid error message string length couting errorsSami Kerola2014-05-121-34/+32Star
| | | | | | | | | | | | Remove various magic numbers with either a string lenght count, or a symbolic variable that is recognized by gdb. [kzak@redhat.com: - use snprintf() everywhere, - check snprintf() return code rather than mess up the code with strlens] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove unnecessary void castsSami Kerola2014-05-121-13/+13
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* include: Add missing includesMichael Forney2013-10-041-0/+1
| | | | | | | | sys/types.h: For u_char typedef sys/params.h: For MAXNAMLEN sys/ttydefaults.h: For various tty definitions (also add configure check) Signed-off-by: Karel Zak <kzak@redhat.com>
* wall: check writing to a file descriptor was successfulSami Kerola2013-04-261-2/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: spell and encode the name of Arkadiusz Miƛkiewicz correctlyBenno Schulenberg2013-02-061-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: tag two bug messages as "internal error"Benno Schulenberg2013-01-251-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* term-utils: verify writing to streams was successfulSami Kerola2012-04-041-1/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* misc: use %m in format string instead of %s and strerror(errno)Petr Uzel2011-09-271-1/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* ttymsg: fix compiler warnings and use EXIT_Sami Kerola2011-04-121-9/+10
| | | | | | | [kzak@redhat.com: - remove 'register' storage class specifier] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move wall to term-utils/Karel Zak2011-03-021-0/+189
Signed-off-by: Karel Zak <kzak@redhat.com>