/[gentoo-projects]/pax-utils/scanelf.c
Gentoo

Diff of /pax-utils/scanelf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.207 Revision 1.208
1/* 1/*
2 * Copyright 2003-2007 Gentoo Foundation 2 * Copyright 2003-2007 Gentoo Foundation
3 * Distributed under the terms of the GNU General Public License v2 3 * Distributed under the terms of the GNU General Public License v2
4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.207 2008/12/30 13:38:35 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.208 2009/01/31 17:58:37 grobian Exp $
5 * 5 *
6 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
10static const char *rcsid = "$Id: scanelf.c,v 1.207 2008/12/30 13:38:35 vapier Exp $"; 10static const char *rcsid = "$Id: scanelf.c,v 1.208 2009/01/31 17:58:37 grobian Exp $";
11const char * const argv0 = "scanelf"; 11const char * const argv0 = "scanelf";
12 12
13#include "paxinc.h" 13#include "paxinc.h"
14 14
15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
1036 if (sym->st_shndx != SHN_UNDEF) \ 1036 if (sym->st_shndx != SHN_UNDEF) \
1037 continue; \ 1037 continue; \
1038 ++this_sym; \ 1038 ++this_sym; \
1039 } \ 1039 } \
1040 if (next_sym) /* Copy it so that we don't have to worry about the final , */ \ 1040 if (next_sym) /* Copy it so that we don't have to worry about the final , */ \
1041 this_sym = strndup(this_sym, next_sym-this_sym); \ 1041 this_sym = xstrndup(this_sym, next_sym-this_sym); \
1042 /* ok, lets compare the name now */ \ 1042 /* ok, lets compare the name now */ \
1043 if (scanelf_match_symname(this_sym, symname)) { \ 1043 if (scanelf_match_symname(this_sym, symname)) { \
1044 if (be_semi_verbose) { \ 1044 if (be_semi_verbose) { \
1045 char buf[126]; \ 1045 char buf[126]; \
1046 snprintf(buf, sizeof(buf), "%lX %s %s", \ 1046 snprintf(buf, sizeof(buf), "%lX %s %s", \

Legend:
Removed from v.1.207  
changed lines
  Added in v.1.208

  ViewVC Help
Powered by ViewVC 1.1.20