diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-11-27 10:31:53 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-11-27 10:31:53 +0000 |
commit | a641b5e3db2d3898d9da27b23469717b00ab22ea (patch) | |
tree | 7cccc1f715e0c5746b7f6b73d54f59d4d5fa6a84 /usr.bin/elf2aout | |
parent | 005b0c08c0568c7e16d5fcacb0768cbbd2daa8b1 (diff) |
fix printf arguments and two typos in comments
From: Erick Borsboom <erick@bonzai.space-ei.nl>
Diffstat (limited to 'usr.bin/elf2aout')
-rw-r--r-- | usr.bin/elf2aout/elf2aout.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/elf2aout/elf2aout.c b/usr.bin/elf2aout/elf2aout.c index a784735d721..9336c3224aa 100644 --- a/usr.bin/elf2aout/elf2aout.c +++ b/usr.bin/elf2aout/elf2aout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf2aout.c,v 1.3 2003/06/10 22:20:46 deraadt Exp $ */ +/* $OpenBSD: elf2aout.c,v 1.4 2003/11/27 10:31:52 henning Exp $ */ /* * Copyright (c) 1995 @@ -174,7 +174,8 @@ usage: /* Section types we can't handle... */ else if (ph[i].p_type != PT_LOAD) { fprintf(stderr, - "Program header %d type %d can't be converted.\n"); + "Program header %d type %d can't be converted.\n", + i, ph[i].p_type); exit(1); } /* Writable (data) segment? */ @@ -341,7 +342,7 @@ translate_syms(int out, int in, off_t symoff, off_t symsize, off_t stroff, /* Initialize the table pointer... */ nsp = newstrings; - /* Go the the start of the ELF symbol table... */ + /* Go to the start of the ELF symbol table... */ if (lseek(in, symoff, SEEK_SET) < 0) { perror("translate_syms: lseek"); exit(1); @@ -418,7 +419,7 @@ copy(int out, int in, off_t offset, off_t size) char ibuf[4096]; int remaining, cur, count; - /* Go the the start of the ELF symbol table... */ + /* Go to the start of the ELF symbol table... */ if (lseek(in, offset, SEEK_SET) < 0) { perror("copy: lseek"); exit(1); |