Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] fix redeclaration error flagged by cvs gcc
@ 2003-04-17 23:02 Richard Henderson
  2003-04-17 23:08 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 2003-04-17 23:02 UTC (permalink / raw)
  To: gdb-patches

remote.c:5748: error: variable previously declared `static' redeclared `extern'
remote.c:5749: error: variable previously declared `static' redeclared `extern'

Ok?


r~


	* remote.c (minitelnet): Don't redeclare escape_count, echo_check.

Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.95
diff -c -p -d -r1.95 remote.c
*** remote.c	20 Feb 2003 13:43:14 -0000	1.95
--- remote.c	17 Apr 2003 22:57:23 -0000
*************** minitelnet (void)
*** 5745,5753 ****
    int status;
    int quit_count = 0;
  
-   extern int escape_count;	/* global shared by readsocket */
-   extern int echo_check;	/* ditto */
- 
    escape_count = 0;
    echo_check = -1;
  
--- 5745,5750 ----


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA] fix redeclaration error flagged by cvs gcc
  2003-04-17 23:02 [RFA] fix redeclaration error flagged by cvs gcc Richard Henderson
@ 2003-04-17 23:08 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-04-17 23:08 UTC (permalink / raw)
  To: Richard Henderson; +Cc: gdb-patches

On Thu, Apr 17, 2003 at 04:02:35PM -0700, Richard Henderson wrote:
> remote.c:5748: error: variable previously declared `static' redeclared `extern'
> remote.c:5749: error: variable previously declared `static' redeclared `extern'
> 
> Ok?

Yes, thanks.

> 
> 
> r~
> 
> 
> 	* remote.c (minitelnet): Don't redeclare escape_count, echo_check.
> 
> Index: remote.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/remote.c,v
> retrieving revision 1.95
> diff -c -p -d -r1.95 remote.c
> *** remote.c	20 Feb 2003 13:43:14 -0000	1.95
> --- remote.c	17 Apr 2003 22:57:23 -0000
> *************** minitelnet (void)
> *** 5745,5753 ****
>     int status;
>     int quit_count = 0;
>   
> -   extern int escape_count;	/* global shared by readsocket */
> -   extern int echo_check;	/* ditto */
> - 
>     escape_count = 0;
>     echo_check = -1;
>   
> --- 5745,5750 ----
> 

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-17 23:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-17 23:02 [RFA] fix redeclaration error flagged by cvs gcc Richard Henderson
2003-04-17 23:08 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox