Description: Fix typos in source code detected by lintian
 endianess -> endianness; lenght -> length
Author: Cédric Boutillier <cedric.boutillier@gmail.com>
Last-Update: 2012-06-14

--- a/ext/compound_io.c
+++ b/ext/compound_io.c
@@ -332,7 +332,7 @@
     len = end_ptr - start_ptr;
     if (len != length) {
         RAISE(IO_ERROR, "Difference in compound file output file offsets "
-              "<%"OFF_T_PFX"d> does not match the original file lenght "
+              "<%"OFF_T_PFX"d> does not match the original file length "
               "<%"OFF_T_PFX"d>", len, length);
     }
 
--- a/ext/posh.c
+++ b/ext/posh.c
@@ -200,10 +200,10 @@
 const char *
 s_testEndianess( void )
 {
-   /* check endianess */
+   /* check endianness */
    if ( s_testBigEndian() != IS_BIG_ENDIAN )
    {
-      return "*ERROR: POSH compile time endianess does not match run-time endianess verification.  Please report this to poshlib@poshlib.org!\n";
+      return "*ERROR: POSH compile time endianness does not match run-time endianness verification.  Please report this to poshlib@poshlib.org!\n";
    }
 
    /* make sure our endian swap routines work */
@@ -212,7 +212,7 @@
         ( NATIVE16( 0x1234 ) != 0x1234 ) ||
         ( FOREIGN16( 0x1234 ) != 0x3412 ) )
    {
-      return "*ERROR: POSH endianess macro selection failed.  Please report this to poshlib@poshlib.org!\n";
+      return "*ERROR: POSH endianness macro selection failed.  Please report this to poshlib@poshlib.org!\n";
    }
 
    /* test serialization routines */
@@ -245,7 +245,7 @@
                    "floating point..."POSH_FLOAT_STRING"\n"
                    "compiler........."POSH_COMPILER_STRING"\n";
 
-   /* test endianess */
+   /* test endianness */
    err = s_testEndianess();
 
    if ( err != 0 )
--- a/ext/posh.h
+++ b/ext/posh.h
@@ -633,7 +633,7 @@
 
 /*
 ** ----------------------------------------------------------------------------
-** Try to infer endianess.  Basically we just go through the CPUs we know are
+** Try to infer endianness.  Basically we just go through the CPUs we know are
 ** little endian, and assume anything that isn't one of those is big endian.
 ** As a sanity check, we also do this with operating systems we know are
 ** little endian, such as Windows.  Some processors are bi-endian, such as 
