mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Some clean-up
One exit() too much file is not optional
This commit is contained in:
parent
d5cb3661f3
commit
d0e9ceb2b5
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@ -7,8 +6,7 @@ unsigned int n, i, c;
|
|||||||
|
|
||||||
void usage(char *arg)
|
void usage(char *arg)
|
||||||
{
|
{
|
||||||
printf("usage: %s [file]\n", arg);
|
printf("usage: %s file\n", arg);
|
||||||
exit(-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
@ -33,5 +31,5 @@ int main(int argc, char *argv[]) {
|
|||||||
fputc((n >> 8) & 0xff, in);
|
fputc((n >> 8) & 0xff, in);
|
||||||
|
|
||||||
fclose(in);
|
fclose(in);
|
||||||
return (0);
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user