summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scan.l10
1 files changed, 5 insertions, 5 deletions
diff --git a/scan.l b/scan.l
index b88c675..5bb99a0 100644
--- a/scan.l
+++ b/scan.l
@@ -59,7 +59,7 @@
else \
{ \
synerr(_("Input line too long\n")); \
- exit(1); \
+ exit(EXIT_FAILURE); \
} \
return NAME;
@@ -217,7 +217,7 @@ LEXOPT [aceknopr]
else
{
synerr( _("Input line too long\n"));
- exit(1);
+ exit(EXIT_FAILURE);
}
/* Skip trailing whitespace. */
for ( i = strlen( (char *) nmdef ) - 1;
@@ -350,7 +350,7 @@ LEXOPT [aceknopr]
else
{
synerr( _("Input line too long\n"));
- exit(1);
+ exit(EXIT_FAILURE);
}
nmstr[strlen( nmstr ) - 1] = '\0';
return NAME;
@@ -489,7 +489,7 @@ LEXOPT [aceknopr]
else
{
synerr( _("Input line too long\n"));
- exit(1);
+ exit(EXIT_FAILURE);
}
/* Check to see if we've already encountered this
@@ -539,7 +539,7 @@ LEXOPT [aceknopr]
else
{
synerr( _("Input line too long\n"));
- exit(1);
+ exit(EXIT_FAILURE);
}
nmstr[yyleng - 2 - end_is_ws] = '\0'; /* chop trailing brace */