From: Sophie Brun <sophie@offensive-security.com>
Date: Mon, 16 Dec 2019 15:26:05 +0100
Subject: Fix spelling errors

Last-Update: 2016-09-13

Last-Update: 2016-09-13
---
 spec_parser.y | 8 ++++----
 spec_syntax.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/spec_parser.y b/spec_parser.y
index 8c11241..90164eb 100644
--- a/spec_parser.y
+++ b/spec_parser.y
@@ -76,8 +76,8 @@ input
 | input named_composite_type_decl { (void) $2; }
 | input '.' composite_type_decl {
     if (tt_get_type(".")) {
-      // Error - the root type has allready been defined
-      sp_lerror(@1, "Root type '.' allready defined.");
+      // Error - the root type has already been defined
+      sp_lerror(@1, "Root type '.' already defined.");
       YYERROR; // abort and initiate error recovery
     }
 
@@ -136,8 +136,8 @@ field_decl_list
         $$ = append_field($1, $2);
       }
       else {
-        // If it allready exists, we have a semantic error.
-        sp_lerror(@2, "A field with the name '%s' is allready defined.",
+        // If it already exists, we have a semantic error.
+        sp_lerror(@2, "A field with the name '%s' is already defined.",
                   $2->name);
         $$ = $1;
         YYERROR; // abort and initiate error recovery
diff --git a/spec_syntax.c b/spec_syntax.c
index 765858e..44dc91e 100644
--- a/spec_syntax.c
+++ b/spec_syntax.c
@@ -56,7 +56,7 @@ int spec_import(FILE* input) {
   // Create the instance tree
   instance_root = make_instance_tree(type_root);
 
-  printf("Specification sucessfully imported.\n");
+  printf("Specification successfully imported.\n");
 
   return 0;
 
