This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: add missing 'static'


I'm checking this in.

While looking at Keith's patch I noticed that a function definition was
missing a 'static'.  It was already declared static earlier, but I think
it is more readable to also have the keyword on the definition.

Tom

2010-06-24  Tom Tromey  <tromey@redhat.com>

	* psymtab.c (lookup_partial_symbol): Mark definition as static.

Index: psymtab.c
===================================================================
RCS file: /cvs/src/src/gdb/psymtab.c,v
retrieving revision 1.4
diff -u -r1.4 psymtab.c
--- psymtab.c	16 May 2010 01:27:02 -0000	1.4
+++ psymtab.c	24 Jun 2010 20:16:15 -0000
@@ -424,7 +424,7 @@
 /* Look, in partial_symtab PST, for symbol whose natural name is NAME.
    Check the global symbols if GLOBAL, the static symbols if not. */
 
-struct partial_symbol *
+static struct partial_symbol *
 lookup_partial_symbol (struct partial_symtab *pst, const char *name,
 		       int global, domain_enum domain)
 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]