Style fixes.

Use __FBSDID().
Be consistent WRT ANSI use.

OK'ed by:	obrien
This commit is contained in:
Mark Murray 2001-12-03 00:00:22 +00:00
parent 546c7f6629
commit 7f1afe0e0e
1 changed files with 8 additions and 9 deletions

View File

@ -27,25 +27,24 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef lint #include <sys/cdefs.h>
static const char rcsid[] =
"$FreeBSD$"; __FBSDID("$FreeBSD$");
#endif /* not lint */
#include <sys/types.h> #include <sys/types.h>
#include <sys/elf_common.h> #include <sys/elf_common.h>
#include <sys/errno.h>
#include <err.h>
#include <fcntl.h> #include <fcntl.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <sys/errno.h>
#include <err.h>
static int elftype(const char *); static int elftype(const char *);
static const char *iselftype(int); static const char *iselftype(int);
static void printelftypes(void); static void printelftypes(void);
static void usage __P((void)); static void usage(void);
struct ELFtypes { struct ELFtypes {
const char *str; const char *str;
@ -164,7 +163,7 @@ fail:
} }
static void static void
usage() usage(void)
{ {
fprintf(stderr, "usage: brandelf [-f ELF ABI number] [-v] [-l] [-t string] file ...\n"); fprintf(stderr, "usage: brandelf [-f ELF ABI number] [-v] [-l] [-t string] file ...\n");
exit(1); exit(1);
@ -197,7 +196,7 @@ elftype(const char *elfstrtype)
} }
static void static void
printelftypes() printelftypes(void)
{ {
size_t elfwalk; size_t elfwalk;