/[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.51 Revision 1.52
1/* 1/*
2 * Copyright 2003 Ned Ludd <solar@gentoo.org> 2 * Copyright 2003 Ned Ludd <solar@gentoo.org>
3 * Copyright 1999-2005 Gentoo Foundation 3 * Copyright 1999-2005 Gentoo Foundation
4 * Distributed under the terms of the GNU General Public License v2 4 * Distributed under the terms of the GNU General Public License v2
5 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.51 2005/05/18 05:15:48 vapier Exp $ 5 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.52 2005/05/18 14:37:21 solar Exp $
6 * 6 *
7 ******************************************************************** 7 ********************************************************************
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the 10 * published by the Free Software Foundation; either version 2 of the
33#include <getopt.h> 33#include <getopt.h>
34#include <assert.h> 34#include <assert.h>
35 35
36#include "paxelf.h" 36#include "paxelf.h"
37 37
38static const char *rcsid = "$Id: scanelf.c,v 1.51 2005/05/18 05:15:48 vapier Exp $"; 38static const char *rcsid = "$Id: scanelf.c,v 1.52 2005/05/18 14:37:21 solar Exp $";
39#define argv0 "scanelf" 39#define argv0 "scanelf"
40 40
41 41
42 42
43/* prototypes */ 43/* prototypes */
710 710
711/* display usage and exit */ 711/* display usage and exit */
712static void usage(int status) 712static void usage(int status)
713{ 713{
714 unsigned long i; 714 unsigned long i;
715 printf(" Scan ELF binaries for stuff\n\n" 715 printf("* Scan ELF binaries for stuff\n\n"
716 "Usage: %s [options] <dir1/file1> [dir2 dirN fileN ...]\n\n", argv0); 716 "Usage: %s [options] <dir1/file1> [dir2 dirN fileN ...]\n\n", argv0);
717 printf("Options: -[%s]\n", PARSE_FLAGS); 717 printf("Options: -[%s]\n", PARSE_FLAGS);
718 for (i = 0; long_opts[i].name; ++i) 718 for (i = 0; long_opts[i].name; ++i)
719 if (long_opts[i].has_arg == no_argument) 719 if (long_opts[i].has_arg == no_argument)
720 printf(" -%c, --%-13s %s\n", long_opts[i].val, 720 printf(" -%c, --%-13s* %s\n", long_opts[i].val,
721 long_opts[i].name, opts_help[i]); 721 long_opts[i].name, opts_help[i]);
722 else 722 else
723 printf(" -%c, --%-6s <arg> %s\n", long_opts[i].val, 723 printf(" -%c, --%-6s <arg> * %s\n", long_opts[i].val,
724 long_opts[i].name, opts_help[i]); 724 long_opts[i].name, opts_help[i]);
725 725
726 if (status != EXIT_SUCCESS) 726 if (status != EXIT_SUCCESS)
727 exit(status); 727 exit(status);
728 728

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

  ViewVC Help
Powered by ViewVC 1.1.20