s3:registry: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Thu, 13 Jul 2023 07:27:28 +0000 (09:27 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 19 Jul 2023 09:58:37 +0000 (09:58 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
source3/registry/reg_backend_db.c
source3/registry/reg_format.c
source3/registry/reg_format.h
source3/registry/reg_import.h
source3/registry/reg_parse.h
source3/registry/reg_parse_dox.cfg
source3/registry/reg_parse_internal.h
source3/registry/reg_perfcount.c
source3/registry/regfio.c
source3/registry/regfio.h

index 829b82d905907c2245052867886540ab616bd408..44b3b5f93dd34935d11c03c32d54b957db175447 100644 (file)
@@ -404,7 +404,7 @@ do_init:
 
        /*
         * There are potentially quite a few store operations which are all
-        * indiviually wrapped in tdb transactions. Wrapping them in a single
+        * individually wrapped in tdb transactions. Wrapping them in a single
         * transaction gives just a single transaction_commit() to actually do
         * its fsync()s. See tdb/common/transaction.c for info about nested
         * transaction behaviour.
@@ -775,7 +775,7 @@ WERROR regdb_init(void)
        TALLOC_FREE(db_path);
 
        regdb_refcount = 1;
-       DEBUG(10, ("regdb_init: registry db openend. refcount reset (%d)\n",
+       DEBUG(10, ("regdb_init: registry db opened. refcount reset (%d)\n",
                   regdb_refcount));
 
        status = dbwrap_fetch_int32_bystring(regdb, REGDB_VERSION_KEYNAME,
index b95f87c2a707b270694976152ead48356886683b..d3ac2401f3cbafdb1d4df4bd64e4c9893c2ce090 100644 (file)
@@ -50,7 +50,7 @@ static void cstr_unescape(char* val)
  * @param[out] ost outstream
  * @param[in]  name string
  *
- * @return numner of bytes written, -1 on error
+ * @return number of bytes written, -1 on error
  * @see srprs_val_name
  */
 static int cbuf_print_value_assign(cbuf* ost, const char* name) {
index e4e59d79fd11b56fdd07d5f3fc36ddfed60db8d4..dfeb5b8ae04dd9e6fea61cb16c41a2663d848ec1 100644 (file)
@@ -19,7 +19,7 @@
 
 /**
  * @brief  Format registration entries (.reg) files.
- * A formater is a talloced incarnation of an opaque struct reg_format.
+ * A formatter is a talloced incarnation of an opaque struct reg_format.
  * It is fed with registry key's and value's and emits output by calling
  * writeline from its reg_format_callback.
  * @file   reg_format.h
@@ -39,7 +39,7 @@ struct regval_blob;
 
 
 /**
- * A Formater for registration entries (.reg) files.
+ * A Formatter for registration entries (.reg) files.
  *
  * It may be used as a reg_parse_callback, so the following is valid:
  * @code
@@ -65,7 +65,7 @@ typedef int (*reg_format_callback_writeline_t)(void* private_data,
                                               const char* line);
 /**
  * Type handling the output of a reg_format object.
- * It containes the functions to call and an opaque data pointer.
+ * It contains the functions to call and an opaque data pointer.
  */
 typedef struct reg_format_callback {
        /**< Function called to write a line */
@@ -107,9 +107,9 @@ reg_format* reg_format_file(const void* talloc_ctx,
  * Format a registry key given as struct registry_key.
  * Create/Open or Delete
  *
- * @param f   the formater.
+ * @param f   the formatter.
  * @param key the key to output.
- * @param del wheter to format the deletion of the key
+ * @param del whether to format the deletion of the key
  *
  * @retval >= 0 on success.
  */
@@ -120,7 +120,7 @@ int reg_format_registry_key(reg_format* f,
 /**
  * Format a registry value given as struct registry_value.
  *
- * @param f    the formater.
+ * @param f    the formatter.
  * @param name the values name
  * @param val  the values value.
  *
@@ -133,7 +133,7 @@ int reg_format_registry_value(reg_format* f,
 /**
  * Format a registry value given as struct regval_blob.
  *
- * @param f    the formater.
+ * @param f    the formatter.
  * @param name the values name, if NULL use val->valname which is limited in size;
  * @param val  the values value.
  *
@@ -147,7 +147,7 @@ int reg_format_regval_blob(reg_format* f,
 /**
  * Format deletion of a registry value.
  *
- * @param f    the formater.
+ * @param f    the formatter.
  * @param name the values name
  *
  * @retval >= 0 on success.
@@ -159,7 +159,7 @@ int reg_format_value_delete(reg_format* f, const char* name);
 /**
  * Format a comment.
  *
- * @param f   the formater.
+ * @param f   the formatter.
  * @param txt the comment in UNIX charset, may not contain newlines.
  *
  * @retval >= 0 on success.
@@ -186,10 +186,10 @@ int reg_format_set_options(reg_format* f, const char* options);
  * Format a registry key.
  * Create/Open or Delete
  *
- * @param f   the formater
+ * @param f   the formatter
  * @param key the key to output
  * @param klen number of elements in key
- * @param del wheter to format the deletion of the key
+ * @param del whether to format the deletion of the key
  *
  * @retval >= 0 on success.
  *
@@ -202,7 +202,7 @@ int reg_format_key(reg_format* f,
 /**
  * Format a registry value.
  *
- * @param f    the formater
+ * @param f    the formatter
  * @param name the values name
  * @param type the values type
  * @param data the values value
index 0cb27cc4095f7e830856c56defcf547cded6b72d..31e8753aab74e66fc8112f5a65c0dd1f170a446a 100644 (file)
@@ -153,7 +153,7 @@ typedef     WERROR (*reg_import_callback_setval_regval_blob_t)(
 
 /**
  * Type handling the output of a reg_import object.
- * It containes the functions to call and an opaque data pointer.
+ * It contains the functions to call and an opaque data pointer.
  */
 struct reg_import_callback {
        /** Function called to open key */
index 867c76eab2f725df8ddda188b3da431a1aebac9e..ba02ec6a357a1af9e8331fa314ce807800fe0e1a 100644 (file)
@@ -103,7 +103,7 @@ typedef int (*reg_parse_callback_comment_t) (void* private_data,
 
 /**
  * Type handling the output of a reg_parse object.
- * It containes the functions to call and an opaque data pointer.
+ * It contains the functions to call and an opaque data pointer.
  */
 typedef struct reg_parse_callback {
        reg_parse_callback_key_t key; /**< Function called on key found */
index 06448cf8ed59afd3da5dcd4097435c768b3b0757..17053508c33d87ec1ce0483fc94f82f955991c73 100644 (file)
@@ -278,10 +278,10 @@ TYPEDEF_HIDES_STRUCT   = NO
 # For small to medium size projects (<1000 input files) the default value is
 # probably good enough. For larger projects a too small cache size can cause
 # doxygen to be busy swapping symbols to and from disk most of the time
-# causing a significant performance penality.
+# causing a significant performance penalty.
 # If the system has enough physical memory increasing the cache will improve the
 # performance by keeping more symbols in memory. Note that the value works on
-# a logarithmic scale so increasing the size by one will rougly double the
+# a logarithmic scale so increasing the size by one will roughly double the
 # memory usage. The cache size is given by this formula:
 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
 # corresponding to a cache size of 2^16 = 65536 symbols
index c2e4c8db60f669a94a10e3778c27b1fa9d2ed488..62d0f74210a54dd510d4d593c57b4241f6b67f3e 100644 (file)
@@ -21,7 +21,7 @@
 
 /**
  * @brief  Some stuff used by reg_parse and reg_format.
- * It might be usefull elsewehre but need some review of the interfaces.
+ * It might be useful elsewehre but need some review of the interfaces.
  * @file   reg_parse_internal.h
  * @author Gregor Beck <gb@sernet.de>
  * @date   Sep 2010
index 394930b27a9dddce24fb95f0065364650478d993..131cc57d9587721ac61ff66f1601ab6542e4333c 100644 (file)
@@ -1400,7 +1400,7 @@ static bool _reg_perfcount_marshall_perf_objects(prs_struct *ps, struct PERF_DAT
 
                /* Now do the counters */
                /* If no instances, encode counter_data */
-               /* If instances, encode instace plus counter data for each instance */
+               /* If instances, encode instance plus counter data for each instance */
                if(_reg_perfcount_marshall_perf_counters(ps, object, depth) == False)
                        return False;
                if(object.NumInstances == PERF_NO_INSTANCES)
index b629715217e0b3138bca73ca8262e0b31f5bd017..e7bb8d18f8f97139fc07ecda5ae08e4b4aa54f0e 100644 (file)
@@ -1170,7 +1170,7 @@ static bool next_nk_record( REGF_FILE *file, REGF_HBIN *hbin, REGF_NK_REC *nk, b
 }
 
 /*******************************************************************
- Intialize the newly created REGF_BLOCK in *file and write the
+ Initialize the newly created REGF_BLOCK in *file and write the
  block header to disk
 *******************************************************************/
 
@@ -1190,7 +1190,7 @@ static bool init_regf_block( REGF_FILE *file )
 
        unix_to_nt_time( &file->mtime, time(NULL) );
 
-       /* hard coded values...no diea what these are ... maybe in time */
+       /* hard coded values...no idea what these are ... maybe in time */
 
        file->unknown1 = 0x2;
        file->unknown2 = 0x1;
@@ -1427,7 +1427,7 @@ REGF_NK_REC* regfio_rootkey( REGF_FILE *file )
 }
 
 /*******************************************************************
- This acts as an interator over the subkeys defined for a given
+ This acts as an iterator over the subkeys defined for a given
  NK record.  Remember that offsets are from the *first* HBIN block.
 *******************************************************************/
 
index 172427f1985798b529d5191122052b7a5db606b8..fc7797078b45cd8aff14f355c8400f1dd5dc3d21 100644 (file)
@@ -200,7 +200,7 @@ typedef struct {
        REGF_SK_REC *sec_desc_list;     /* list of security descriptors referenced by NK records */
 
        /* Ignore checksums in input data. Used by fuzzing code to allow more
-        * coverage without having to calcuate a valid checksum. The checksums
+        * coverage without having to calculate a valid checksum. The checksums
         * are merely to detect data corruption and don't provide a security
         * value.
         */