From: Daniel Jacobowitz <drow@false.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Vladimir Prus <vladimir@codesourcery.com>,
gdb-patches@sources.redhat.com
Subject: Re: [ob] fix mingw compilation
Date: Thu, 08 Feb 2007 16:25:00 -0000 [thread overview]
Message-ID: <20070208162512.GB11806@nevyn.them.org> (raw)
In-Reply-To: <uwt348dru.fsf@gnu.org>
On Tue, Jan 30, 2007 at 10:23:33PM +0200, Eli Zaretskii wrote:
> > From: Vladimir Prus <vladimir@codesourcery.com>
> > Date: Tue, 30 Jan 2007 13:37:14 +0300
> >
> > @@ -765,18 +768,20 @@ pipe_windows_close (struct serial *scb)
> > static int
> > pipe_windows_read (struct serial *scb, size_t count)
> > {
> > - HANDLE pipeline_out = (HANDLE) _get_osfhandle (scb->fd);
> > + HANDLE pipeline_out;
>
> This one-line change is unnecessary; please put back the original
> code, it's perfectly valid C, and shouldn't trigger any warnings or
> errors from GCC.
>
> The other changes are okay.
>
> Thanks.
It's valid either way, of course. In the interests of all getting
along, I checked this in (to get the message out of my todo queue :-).
--
Daniel Jacobowitz
CodeSourcery
2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
* ser-mingw.c (pipe_windows_close): Move variable initialization back
up.
Index: ser-mingw.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-mingw.c,v
retrieving revision 1.6
diff -u -p -r1.6 ser-mingw.c
--- ser-mingw.c 30 Jan 2007 09:12:43 -0000 1.6
+++ ser-mingw.c 8 Feb 2007 16:21:01 -0000
@@ -768,11 +768,10 @@ pipe_windows_close (struct serial *scb)
static int
pipe_windows_read (struct serial *scb, size_t count)
{
- HANDLE pipeline_out;
+ HANDLE pipeline_out = (HANDLE) _get_osfhandle (scb->fd);
DWORD available;
DWORD bytes_read;
- pipeline_out = (HANDLE) _get_osfhandle (scb->fd);
if (pipeline_out == INVALID_HANDLE_VALUE)
return -1;
next prev parent reply other threads:[~2007-02-08 16:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-30 10:37 Vladimir Prus
2007-01-30 20:24 ` Eli Zaretskii
2007-02-08 16:25 ` Daniel Jacobowitz [this message]
2007-02-09 15:27 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070208162512.GB11806@nevyn.them.org \
--to=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox