Fix some typos.
authorTim Retout <diocles@gnu.org>
Sat, 9 Jul 2011 20:59:11 +0000 (21:59 +0100)
committerTim Retout <diocles@gnu.org>
Sat, 9 Jul 2011 20:59:11 +0000 (21:59 +0100)
Signed-off-by: Tim Retout <diocles@gnu.org>
ChangeLog
states/main.c
states/utils.c

index 2fd05a9ad9d0e2566854bd6a0c05a66f686f9f8b..70c86623630546b7cd1cd2d5c1cc6886db9358ef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
        * src/Makefile.am: Remove ansi2knr option and supporting files.
        * afmlib/Makefile.am: Likewise.
 
+       * states/utils.c (eval_expr): Fix typo in error string.
+       * states/main.c (usage): Fix typo in --define usage string.
+
 2010-06-02  Tim Retout  <diocles@gnu.org>
 
        Fix Savannah bug #28769 (segfault when parsing config file).
index 40c253c1ab8e56182de7074e313ee49e1ba21144..1c330dc65679ba045990e8da73df32904f901b87 100644 (file)
@@ -447,7 +447,7 @@ Usage: %s [OPTION]... [FILE]...\n\
 Mandatory arguments to long options are mandatory for short options too.\n"),
           program);
   printf (_("\
-  -D, --define=VAR=VAL       define variable VAR to have value VAR\n\
+  -D, --define=VAR=VAL       define variable VAR to have value VAL\n\
   -f, --file=NAME            read state definitions from file NAME\n\
   -h, --help                 print this help and exit\n\
   -o, --output=NAME          save output to file NAME\n\
index 02b5b61c7c0eead5e3a76134f823c14955f3c531..d4ee9dde4068826c0f2243990bb257c7c27b331c 100644 (file)
@@ -1116,7 +1116,7 @@ eval_expr (expr, env)
          || (n->type == nSTRING && n2->u.integer >= n->u.str.len))
        {
          fprintf (stderr,
-                  _("%s:%d: error: array reference index out of rance\n"),
+                  _("%s:%d: error: array reference index out of range\n"),
                   expr->filename, expr->linenum);
          exit (1);
        }