Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Manoj Iyer <manjo@austin.ibm.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFC] GDBserver compiler warnings patch
Date: Mon, 06 Jun 2005 22:26:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.58.0506061717440.1519@lazy> (raw)
In-Reply-To: <Pine.LNX.4.58.0506011237240.5282@lazy>


Any comments on this patch? ok to commit?

Thanks
-----
manjo
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Cogito ergo sum                                                          +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

On Wed, 1 Jun 2005, Manoj Iyer wrote:

>
> 2005-06-01  Manoj Iyer  <manjo@austin.ibm.com>
>
> 	* gdbreplay.c: Added #include <sys/types.h>.
> 	(remote_open): Change type of 'tmp' from int to socklen_t.
> 	* remote-utils.c: Added #include <sys/types.h>.
> 	(remote_open): Change type of 'tmp' from int to socklen_t.
> 	* server.c: Change type of 'sig' from unsigned char to char.
>
>
> --------------------------------------------------------------------
> diff -Naurp old/src/gdb/gdbserver/gdbreplay.c new/src/gdb/gdbserver/gdbreplay.c
> --- old/src/gdb/gdbserver/gdbreplay.c	2004-03-12 12:51:21.000000000 -0800
> +++ new/src/gdb/gdbserver/gdbreplay.c	2005-06-01 11:24:52.792975800 -0700
> @@ -23,6 +23,7 @@
>  #include <stdio.h>
>  #include <sys/file.h>
>  #include <netinet/in.h>
> +#include <sys/types.h>
>  #include <sys/socket.h>
>  #include <netdb.h>
>  #include <netinet/tcp.h>
> @@ -105,7 +106,7 @@ remote_open (char *name)
>        char *port_str;
>        int port;
>        struct sockaddr_in sockaddr;
> -      int tmp;
> +      socklen_t tmp;
>        int tmp_desc;
>
>        port_str = strchr (name, ':');
> diff -Naurp old/src/gdb/gdbserver/remote-utils.c new/src/gdb/gdbserver/remote-utils.c
> --- old/src/gdb/gdbserver/remote-utils.c	2005-05-12 05:14:23.000000000 -0700
> +++ new/src/gdb/gdbserver/remote-utils.c	2005-06-01 11:17:39.946018968 -0700
> @@ -27,6 +27,7 @@
>  #include <sys/ioctl.h>
>  #include <sys/file.h>
>  #include <netinet/in.h>
> +#include <sys/types.h>
>  #include <sys/socket.h>
>  #include <netdb.h>
>  #include <netinet/tcp.h>
> @@ -122,7 +123,7 @@ remote_open (char *name)
>        char *port_str;
>        int port;
>        struct sockaddr_in sockaddr;
> -      int tmp;
> +      socklen_t tmp;
>        int tmp_desc;
>
>        port_str = strchr (name, ':');
> diff -Naurp old/src/gdb/gdbserver/server.c new/src/gdb/gdbserver/server.c
> --- old/src/gdb/gdbserver/server.c	2005-05-12 05:14:23.000000000 -0700
> +++ new/src/gdb/gdbserver/server.c	2005-06-01 11:21:52.040032192 -0700
> @@ -379,7 +379,7 @@ main (int argc, char *argv[])
>        setjmp (toplevel);
>        while (getpkt (own_buf) > 0)
>  	{
> -	  unsigned char sig;
> +	  char sig;
>  	  i = 0;
>  	  ch = own_buf[i++];
>  	  switch (ch)
>
> -----
> manjo
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> + Cogito ergo sum                                                          +
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>


  reply	other threads:[~2005-06-06 22:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-01 17:47 Manoj Iyer
2005-06-06 22:26 ` Manoj Iyer [this message]
2005-06-11 23:38 ` Mark Kettenis
2005-06-13  2:00 ` Daniel Jacobowitz
2005-06-13 21:39   ` Mark Kettenis
2005-06-13 22:43     ` Daniel Jacobowitz
2005-06-14 21:37       ` Mark Kettenis

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=Pine.LNX.4.58.0506061717440.1519@lazy \
    --to=manjo@austin.ibm.com \
    --cc=gdb-patches@sources.redhat.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