* agetty: double equals sign typo in opentty()
@ 2011-09-06 20:50 Francesco Cosoleto
2011-09-07 5:45 ` Karel Zak
2011-09-07 7:05 ` Dr. Werner Fink
0 siblings, 2 replies; 3+ messages in thread
From: Francesco Cosoleto @ 2011-09-06 20:50 UTC (permalink / raw)
To: util-linux; +Cc: werner
Hello.
agetty.c(988): warning #187: use of "=" where "==" may have been intended
if (ioctl(STDIN_FILENO, TIOCMGET, &serial) < 0 && (errno = EINVAL)) {
^
This was spotted by Intel Compiler.
Francesco
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: agetty: double equals sign typo in opentty()
2011-09-06 20:50 agetty: double equals sign typo in opentty() Francesco Cosoleto
@ 2011-09-07 5:45 ` Karel Zak
2011-09-07 7:05 ` Dr. Werner Fink
1 sibling, 0 replies; 3+ messages in thread
From: Karel Zak @ 2011-09-07 5:45 UTC (permalink / raw)
To: Francesco Cosoleto; +Cc: util-linux, werner
On Tue, Sep 06, 2011 at 10:50:58PM +0200, Francesco Cosoleto wrote:
> agetty.c(988): warning #187: use of "=" where "==" may have been intended
> if (ioctl(STDIN_FILENO, TIOCMGET, &serial) < 0 && (errno = EINVAL)) {
Fixed. Thanks!
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: agetty: double equals sign typo in opentty()
2011-09-06 20:50 agetty: double equals sign typo in opentty() Francesco Cosoleto
2011-09-07 5:45 ` Karel Zak
@ 2011-09-07 7:05 ` Dr. Werner Fink
1 sibling, 0 replies; 3+ messages in thread
From: Dr. Werner Fink @ 2011-09-07 7:05 UTC (permalink / raw)
To: Francesco Cosoleto; +Cc: util-linux
On Tue, Sep 06, 2011 at 10:50:58PM +0200, Francesco Cosoleto wrote:
> Hello.
>
> agetty.c(988): warning #187: use of "=" where "==" may have been intended
> if (ioctl(STDIN_FILENO, TIOCMGET, &serial) < 0 && (errno = EINVAL)) {
> ^
> This was spotted by Intel Compiler.
Wooh ... good catch :)
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-07 16:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-06 20:50 agetty: double equals sign typo in opentty() Francesco Cosoleto
2011-09-07 5:45 ` Karel Zak
2011-09-07 7:05 ` Dr. Werner Fink
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox