summaryrefslogtreecommitdiff
path: root/rdoff/rdfdump.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-04-12 16:54:50 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-04-12 16:54:50 +0000
commit038d861eded9bfc75529e23ba8d5d6edd5e3ef98 (patch)
tree8383e607cb9bdcba3beef5d831e8a0f6e175f28c /rdoff/rdfdump.c
parent2030bd21f4923d4ddd4c093f8756451fc35220f8 (diff)
downloadnasm-038d861eded9bfc75529e23ba8d5d6edd5e3ef98.tar.gz
nasm-038d861eded9bfc75529e23ba8d5d6edd5e3ef98.tar.bz2
nasm-038d861eded9bfc75529e23ba8d5d6edd5e3ef98.zip
Remove obsolete types; add <inttypes.h> where needed; header fixes
- Remove obsolete types like "uint32"; use "uint32_t" consistently. - Make sure we include <inttypes.h> where needed. - Header file guards should be FOO_H or SUBDIR_FOO_H; _FOO_H infringes on the C implementation's namespace and should only be used when writing libc! - Change a few "int8_t" back to "char" where appropriate. There are a lot more places where that should be done, though. - Clean up the check for getuid/getgid in rdoff/rdlar.h.
Diffstat (limited to 'rdoff/rdfdump.c')
-rw-r--r--rdoff/rdfdump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rdoff/rdfdump.c b/rdoff/rdfdump.c
index 1244b2f..96c5a36 100644
--- a/rdoff/rdfdump.c
+++ b/rdoff/rdfdump.c
@@ -19,7 +19,7 @@ void print_header(int32_t length, int rdf_version)
int8_t buf[129], t, l, s, flags;
uint8_t reclen;
int32_t o, ll;
- uint16 rs;
+ uint16_t rs;
while (length > 0) {
fread(&t, 1, 1, infile);
@@ -162,11 +162,11 @@ void print_header(int32_t length, int rdf_version)
}
}
-int main(int argc, int8_t **argv)
+int main(int argc, char **argv)
{
int8_t id[7];
int32_t l;
- uint16 s;
+ uint16_t s;
int verbose = 0;
int32_t offset;
int foundnullsegment = 0;