diff options
author | B. Watson <urchlay@slackware.uk> | 2025-02-25 16:00:50 -0500 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-02-25 16:00:50 -0500 |
commit | 9a96d6a2b17079f0666401a88bf999f9c3a6a5f1 (patch) | |
tree | f3ba2e69bdd5301aa99f30ee2c636e258398cb97 | |
parent | 80cedcd51a1138f3e13b061ce44c97f1cdce6f13 (diff) | |
download | bw-atari8-tools-9a96d6a2b17079f0666401a88bf999f9c3a6a5f1.tar.gz |
listamsb: remove another unneeded variable in main().
-rw-r--r-- | listamsb.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -42,6 +42,7 @@ int check_only = 0; /* -c */ int need_pclose = 0; int bytes_read = 0; int warnings = 0; +int proglen = 0; FILE *infile; FILE *outfile; @@ -83,10 +84,8 @@ int read_word(void) { return w; } -/* return value is program length */ -int read_header(void) { +void read_header(void) { unsigned char b; - int proglen; b = read_byte(); if(b) die2("not an AMSB file: first byte not $00"); @@ -112,8 +111,6 @@ int read_header(void) { exit(2); } } - - return proglen; } void unknown_token(int lineno, unsigned char byte, int ext) { @@ -306,7 +303,7 @@ void open_output() { } int main(int argc, char **argv) { - int proglen, rv = 0, linecount = 0; + int rv = 0, linecount = 0; set_self(argv[0]); @@ -314,7 +311,7 @@ int main(int argc, char **argv) { open_output(); - proglen = read_header(); + read_header(); while(next_line()) linecount++; |