This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils 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]

[PATCH] unstrip.c: Mark function as static


The function `compare_sections_nonrel' most probably should be marked
as static.  It is used nowhere else.  Tested on x86_64-redhat-linux.  OK?

2011-05-07  Marek Polacek  <mpolacek@redhat.com>

        * unstrip.c (compare_sections_nonrel): Mark this function as static.


diff --git a/src/unstrip.c b/src/unstrip.c
index 3283d73..69c3775 100644
--- a/src/unstrip.c
+++ b/src/unstrip.c
@@ -706,7 +706,7 @@ compare_sections_rel (const void *a, const void *b)
   return compare_sections (a, b, true);
 }

-int
+static int
 compare_sections_nonrel (const void *a, const void *b)
 {
   return compare_sections (a, b, false);

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