/[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.150 Revision 1.151
1/* 1/*
2 * Copyright 2003-2006 Gentoo Foundation 2 * Copyright 2003-2006 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.150 2006/05/14 21:37:55 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.151 2006/05/14 23:17:31 kevquinn Exp $
5 * 5 *
6 * Copyright 2003-2006 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2006 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2006 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
10#include "paxinc.h" 10#include "paxinc.h"
11 11
12static const char *rcsid = "$Id: scanelf.c,v 1.150 2006/05/14 21:37:55 vapier Exp $"; 12static const char *rcsid = "$Id: scanelf.c,v 1.151 2006/05/14 23:17:31 kevquinn Exp $";
13#define argv0 "scanelf" 13#define argv0 "scanelf"
14 14
15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
16 16
17#define do_state(option, flag) \ 17#define do_state(option, flag) \
1866 for (s = strtok_r(env, " \t\n", &saveptr); s != NULL; s = strtok_r(NULL, " \t\n", &saveptr)) { 1866 for (s = strtok_r(env, " \t\n", &saveptr); s != NULL; s = strtok_r(NULL, " \t\n", &saveptr)) {
1867 if ((envvals = xrealloc(envvals, sizeof(char *)*(nentry+1))) == NULL) 1867 if ((envvals = xrealloc(envvals, sizeof(char *)*(nentry+1))) == NULL)
1868 return NULL; 1868 return NULL;
1869 envvals[nentry++] = s; 1869 envvals[nentry++] = s;
1870 } 1870 }
1871 envvals[nentry] = NULL; 1871 if (nentry > 0) envvals[nentry] = NULL;
1872 1872
1873 return envvals; 1873 return envvals;
1874} 1874}
1875 1875
1876static void parseenv() 1876static void parseenv()

Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151

  ViewVC Help
Powered by ViewVC 1.1.20