mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 11:15:39 +00:00
xlink: replace awkward fatalerror() with standard errx(3)
fatalerror() prints a given string to stdout and exits(5). It cannot format text, so there was a string temptext used with sprintf() to format text and pass it to fatalerror(). errx() can format text, and it prints to stderr. As a bonus, this fixes the linking warnings from use of sprintf().
This commit is contained in:
1 parent
bb85782faa
commit
0b08fca9f2
8 files changed
+63
-126
No files matched your search
@@ -4,8 +4,6 @@
|
||||
#include "link/types.h"
|
||||
|
||||
extern void PrintUsage(void);
|
||||
extern void fatalerror(char *s);
|
||||
extern char temptext[1024];
|
||||
extern SLONG fillchar;
|
||||
extern char smartlinkstartsymbol[256];
|
||||
|
||||
|
||||
Reference in new issue
Block a user