From: Dhruv Chawla <[email protected]>

Signed-off-by: Dhruv Chawla <[email protected]>

libvtv/ChangeLog:

        * vtv_fail.cc: Fix typos.
        * vtv_malloc.cc (__vtv_free): Likewise.
        * vtv_map.h (class insert_only_hash_map): Likewise.
        * vtv_rts.cc (init_set_symbol_debug): Likewise.
        * vtv_utils.cc (vtv_log_write): Likewise.
---
 libvtv/vtv_fail.cc   | 2 +-
 libvtv/vtv_malloc.cc | 4 ++--
 libvtv/vtv_map.h     | 2 +-
 libvtv/vtv_rts.cc    | 8 ++++----
 libvtv/vtv_utils.cc  | 8 ++++----
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/libvtv/vtv_fail.cc b/libvtv/vtv_fail.cc
index 5c7e02471ff..cd00a727f07 100644
--- a/libvtv/vtv_fail.cc
+++ b/libvtv/vtv_fail.cc
@@ -35,7 +35,7 @@
    find the pointer in the data set.  Allowing the programmer to
    overwrite this function means that he/she can do some alternate
    verification, including NOT failing in certain specific cases, if
-   desired.  This may be the case if the programmer has to deal wtih
+   desired.  This may be the case if the programmer has to deal with
    unverified third party software, for example.  __vtv_really_fail is
    available for the programmer to call from his version of
    __vtv_verify_fail, if he decides the failure is real.
diff --git a/libvtv/vtv_malloc.cc b/libvtv/vtv_malloc.cc
index b4b2d031420..5283c7e0f5c 100644
--- a/libvtv/vtv_malloc.cc
+++ b/libvtv/vtv_malloc.cc
@@ -24,7 +24,7 @@
 /* This file is part of the vtable verification runtime library.  It
    contains our memory allocation and deallocation routines, which we
    use in order to keep track of the pages in memory in which our sets
-   of valid vtable pointes are stored.  (We need to know the pages so
+   of valid vtable pointers are stored.  (We need to know the pages so
    we can set the protections on them appropriately).  For more
    information about the vtable verification feature, see the comments
    in vtv_rts.cc.  We use the existing obstack implementation in our
@@ -243,7 +243,7 @@ __vtv_malloc (size_t size)
 void
 __vtv_free (void *)
 {
-  /* Do nothing. We dont care about recovering unneded memory at this
+  /* Do nothing. We dont care about recovering unneeded memory at this
      time.  */
 }
 
diff --git a/libvtv/vtv_map.h b/libvtv/vtv_map.h
index 6f9e58e8915..755a6bd8d7f 100644
--- a/libvtv/vtv_map.h
+++ b/libvtv/vtv_map.h
@@ -92,7 +92,7 @@ class insert_only_hash_map
   { Alloc().dealloc (m, m->size_in_bytes_); }
 
   /* Return a map identical to this except that *k is mapped to v.
-     Typcially it's done by modifying this in place, but if a resize
+     Typically it's done by modifying this in place, but if a resize
      is necessary then this is deallocated and a new map is returned.
      Requires k to be non-NULL.  Does nothing and returns NULL if the
      allocator fails.  */
diff --git a/libvtv/vtv_rts.cc b/libvtv/vtv_rts.cc
index 9fcad631745..0d84d769fd5 100644
--- a/libvtv/vtv_rts.cc
+++ b/libvtv/vtv_rts.cc
@@ -53,7 +53,7 @@
   hacker targets.
 
   To find and reference the set of valid vtable pointers for any given
-  virtual class, we create a special global varible for each virtual
+  virtual class, we create a special global variable for each virtual
   class.  We refer to this as the "vtable map variable" for that
   class.  The vtable map variable has the type "void *", and is
   initialized by the compiler to NULL.  At runtime when the set of
@@ -138,7 +138,7 @@
 #include <fcntl.h>
 #include <limits.h>
 
-/* For gthreads suppport */
+/* For gthreads support */
 #include <bits/c++config.h>
 #include <ext/concurrence.h>
 
@@ -368,7 +368,7 @@ unsigned int num_cache_entries VTV_PROTECTED_VAR = 0;
 
 /* This function takes the LOAD_ADDR for an object opened by the
    dynamic loader, and checks the array of cached file data to see if
-   there is an entry with the same addres.  If it finds such an entry,
+   there is an entry with the same address.  If it finds such an entry,
    it returns the record for that entry; otherwise it returns
    NULL.  */
 
@@ -1304,7 +1304,7 @@ init_set_symbol_debug (void **set_handle_ptr, const void 
*set_symbol_key,
     {
       VTV_DEBUG_ASSERT (*map_value_ptr != NULL);
       snprintf (buffer, sizeof(buffer),
-                "*** Found diffence between local set ptr %p and set ptr %p"
+                "*** Found difference between local set ptr %p and set ptr %p"
                 "for symbol %.*s",
                 *handle_ptr, *map_value_ptr,
                 symbol_key_ptr->n, symbol_key_ptr->bytes);
diff --git a/libvtv/vtv_utils.cc b/libvtv/vtv_utils.cc
index 13efcacc059..f1d2106832e 100644
--- a/libvtv/vtv_utils.cc
+++ b/libvtv/vtv_utils.cc
@@ -21,7 +21,7 @@
    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-/* This file is part of the vtable verication runtime library (see
+/* This file is part of the vtable verification runtime library (see
    comments in vtv_rts.cc for more information about vtable
    verification).  This file contains log file utilities.  */
 
@@ -58,7 +58,7 @@ static int vtv_failures_log_fd = -1;
    open it in the logs_dir directory, and returns the resulting file
    descriptor.
 
-   This function first checks to see if the user has specifed (via
+   This function first checks to see if the user has specified (via
    the environment variable VTV_LOGS_DIR) a directory to use for the
    vtable verification logs.  If that fails, the function will open
    the logs in the current directory.
@@ -131,11 +131,11 @@ vtv_log_write (int fd, const char *str)
 }
 
 
-/* This function takes a file decriptor (LOG_FILE) and an output
+/* This function takes a file descriptor (LOG_FILE) and an output
  format string (FORMAT), followed by zero or more print format
  arguments (the same as fprintf, for example).  It gets the current
  process ID and PPID, pre-pends them to the formatted message, and
- writes write it out to the log file referenced by LOG_FILE via calles
+ writes write it out to the log file referenced by LOG_FILE via calls
  to vtv_log_write.  */
 
 int
-- 
2.43.0

Reply via email to