changeset 493:1bdd2af756ec

Use dmlib functions instead of errno/strerror directly.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 14 Nov 2012 19:14:32 +0200
parents 5672dc238904
children abb112ac9916
files ppl.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ppl.c	Mon Nov 12 22:26:36 2012 +0200
+++ b/ppl.c	Wed Nov 14 19:14:32 2012 +0200
@@ -17,7 +17,6 @@
 
 #include "pplfont.h"
 
-#include <errno.h>
 
 struct
 {
@@ -582,8 +581,9 @@
     
     if ((file = dmf_create_stdio(optFilename, "rb")) == NULL)
     {
+        int err = dmGetErrno();
         dmError("Error opening file '%s', %d: (%s)\n",
-            optFilename, errno, strerror(errno));
+            optFilename, err, dmErrorStr(err));
         return 1;
     }