mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 20:42:07 +00:00
Revert use of system exit codes.
While well‐intentioned, in practice this hurts portability and really, nobody checks the return codes anyway.
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sysexits.h>
|
||||
|
||||
#include "asmotor.h"
|
||||
|
||||
@@ -22,7 +21,7 @@ SetMapfileName(char *name)
|
||||
mf = fopen(name, "w");
|
||||
|
||||
if (mf == NULL)
|
||||
err(EX_CANTCREAT, "Cannot open mapfile '%s'", name);
|
||||
err(1, "Cannot open mapfile '%s'", name);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -31,7 +30,7 @@ SetSymfileName(char *name)
|
||||
sf = fopen(name, "w");
|
||||
|
||||
if (sf == NULL)
|
||||
errx(EX_CANTCREAT, "Cannot open symfile '%s'", name);
|
||||
errx(1, "Cannot open symfile '%s'", name);
|
||||
|
||||
fprintf(sf, ";File generated by xLink v" LINK_VERSION "\n\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user