diff options
author | Michael Vogt <mvo@debian.org> | 2013-08-08 15:40:15 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2013-08-08 15:40:15 +0200 |
commit | f52037d629aea696f938015e7f1ec037eb079af8 (patch) | |
tree | 925b27ed34466ec12778ba90728b0d1b358fc7f8 /cmdline/apt-cdrom.cc | |
parent | e9737c7f6a3e03b2975927ef9b04c1194026ed9c (diff) | |
download | apt-f52037d629aea696f938015e7f1ec037eb079af8.tar.gz |
fix -Wall errors
Diffstat (limited to 'cmdline/apt-cdrom.cc')
-rw-r--r-- | cmdline/apt-cdrom.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline/apt-cdrom.cc b/cmdline/apt-cdrom.cc index c153cca85..545edf439 100644 --- a/cmdline/apt-cdrom.cc +++ b/cmdline/apt-cdrom.cc @@ -66,7 +66,8 @@ void pkgCdromTextStatus::Prompt(const char *Text) { char C; cout << Text << ' ' << flush; - read(STDIN_FILENO,&C,1); + if (read(STDIN_FILENO,&C,1) < 0) + _error->Errno("pkgCdromTextStatus::Prompt", "failed to prompt"); if (C != '\n') cout << endl; } |