Mercurial > hg > dmlib
diff tools/xm2jss.c @ 1431:ed04fb6da07c
Get rid of direct 'errno' usage.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 22 Nov 2017 01:04:41 +0200 |
parents | 0ecd5accea1e |
children | a9516570cc26 |
line wrap: on
line diff
--- a/tools/xm2jss.c Wed Nov 15 07:51:43 2017 +0200 +++ b/tools/xm2jss.c Wed Nov 22 01:04:41 2017 +0200 @@ -6,7 +6,6 @@ * Please read file 'COPYING' for information on license and distribution. */ #include <stdio.h> -#include <errno.h> #include "jss.h" #include "jssmod.h" #include "jssplr.h" @@ -1249,8 +1248,9 @@ // Write output file if ((outFile = fopen(optOutFilename, "wb")) == NULL) { + int err = dmGetErrno(); dmErrorMsg("Error creating output file '%s', %d: %s\n", - optOutFilename, errno, strerror(errno)); + optOutFilename, err, dmErrorStr(err)); return 1; }