summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-04-05 02:29:51 -0300
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-08 16:09:58 +0930
commit2c8df6b6d097f93c5a8ccd085aa33f09dddde969 (patch)
tree418905b066e146c7966229b9389e344ea4039ae4 /src
parente807e5a88af379cad14331b787ed32a45553f8f3 (diff)
Don't call xf86GetErrno(), instead use errno directly.
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
Diffstat (limited to 'src')
-rw-r--r--src/elo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/elo.c b/src/elo.c
index d7b1003..5ed67f0 100644
--- a/src/elo.c
+++ b/src/elo.c
@@ -54,6 +54,8 @@
#include "config.h"
#endif
+#include <errno.h>
+
#define _elo_C_
/*****************************************************************************
* Standard Headers
@@ -159,7 +161,7 @@ SetupProc( pointer module,
{
xf86ErrorF ("ELO 2300 driver unable to open device\n");
*errmaj = LDR_NOPORTOPEN;
- *errmin = xf86GetErrno ();
+ *errmin = errno;
goto SetupProc_fail;
}
xf86ErrorFVerb( 6, "tty port opened successfully\n" );