Correct "occured" typos.
authorChris Lamb <chris@chris-lamb.co.uk>
Fri, 17 Feb 2017 19:46:28 +0000 (08:46 +1300)
committerGarming Sam <garming@samba.org>
Wed, 22 Feb 2017 07:26:21 +0000 (08:26 +0100)
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
15 files changed:
ctdb/common/rb_tree.c
ctdb/doc/ctdb.1.xml
ctdb/doc/recovery-process.txt
lib/krb5_wrap/krb5_samba.c
lib/smbconf/smbconf.h
lib/util/modules.c
source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
source3/libads/ldap.c
source3/modules/vfs_fruit.c
source3/rpc_client/cli_lsarpc.c
source3/rpc_server/rpc_ncacn_np.c
source3/rpc_server/spoolss/srv_spoolss_nt.c
source3/winbindd/wb_group_members.c
source4/selftest/win/wintest_setup.exp
source4/torture/basic/misc.c

index 990ec6177eb5a710fb8a26702176a020275cd994..bacdea6c6896fe79a7c375908ff590517ef08494 100644 (file)
@@ -543,7 +543,7 @@ delete_node(trbt_node_t *node, bool from_destructor)
           This is simple since this dummy node originally had no children
           and we are guaranteed that it will also not have any children 
           after the node has been deleted and any possible rotations 
-          have occured.
+          have occurred.
 
           The only special case is if this was the last node of the tree
           in which case we have to reset the root to NULL as well.
index f24f8dd4966f22ecab7ea5450064dd34faf5da4a..6a0e6eab2609585369f45f70bd3aa73c3082a47f 100644 (file)
@@ -1590,7 +1590,7 @@ RUNNING
       </para>
       <para>
        TCP tickles are useful to "tickle" clients after a IP failover has
-       occured since this will make the client immediately recognize the
+       occurred since this will make the client immediately recognize the
        TCP connection has been disrupted and that the client will need
        to reestablish. This greatly speeds up the time it takes for a client
        to detect and reestablish after an IP failover in the ctdb cluster.
index d2e38c230bde0770823527bad4c7bb95e0002c18..3f7d7d343d620b0768cb5e2b325e7a7ca12f54f0 100644 (file)
@@ -221,7 +221,7 @@ Make sure to find which node is the recovery master and check the log for that n
 
 Example log entries that start in column 1 are expected to be present in the
 log. Example log entries that are indented 3 columns are optional and might
-only be present if an error occured.
+only be present if an error occurred.
 
 
 1, Log that recovery has been initiated.
index 0c98147bf985b3fccd851b888217ed048a1aae7b..8ebf601689b884626d37d45802577fcf518b3718 100644 (file)
@@ -144,7 +144,7 @@ const krb5_data *krb5_princ_component(krb5_context context,
  *
  * @param[out] pkaddr   A Kerberos address to store tha address in.
  *
- * @return True on success, false if an error occured.
+ * @return True on success, false if an error occurred.
  */
 bool smb_krb5_sockaddr_to_kaddr(struct sockaddr_storage *paddr,
                                krb5_address *pkaddr)
@@ -177,7 +177,7 @@ bool smb_krb5_sockaddr_to_kaddr(struct sockaddr_storage *paddr,
  *
  * @param[in]  pkaddr A Kerberos address to store tha address in.
  *
- * @return True on success, false if an error occured.
+ * @return True on success, false if an error occurred.
  */
 bool smb_krb5_sockaddr_to_kaddr(struct sockaddr_storage *paddr,
                                krb5_address *pkaddr)
@@ -2566,7 +2566,7 @@ krb5_error_code smb_krb5_make_pac_checksum(TALLOC_CTX *mem_ctx,
  *
  * @param[in] principal The principal to get the realm from.
  *
- * @return An allocated string with the realm or NULL if an error occured.
+ * @return An allocated string with the realm or NULL if an error occurred.
  *
  * The caller must free the realm string with free() if not needed anymore.
  */
@@ -2744,7 +2744,7 @@ static char *smb_krb5_get_realm_from_hostname(TALLOC_CTX *mem_ctx,
  * @param[in]  default_realm The default_realm if we cannot get it from the
  *                           hostname or netbios name.
  *
- * @return A talloc'ed principal string or NULL if an error occured.
+ * @return A talloc'ed principal string or NULL if an error occurred.
  *
  * The caller needs to free the principal with talloc_free() if it isn't needed
  * anymore.
@@ -2796,7 +2796,7 @@ char *smb_krb5_get_principal_from_service_hostname(TALLOC_CTX *mem_ctx,
  *
  * @param[in]  mem_ctx  The talloc context to allocate the error string on.
  *
- * @return A talloc'ed error string or NULL if an error occured.
+ * @return A talloc'ed error string or NULL if an error occurred.
  *
  * The caller must free the returned error string with talloc_free() if not
  * needed anymore
index 69a55dbf2e238c722be076f8ca2f73e6fb192050..1804cb5905af64f2968c4b8be9dce69bf57b1e35 100644 (file)
@@ -137,7 +137,7 @@ bool smbconf_changed(struct smbconf_ctx *ctx, struct smbconf_csn *csn,
  * @param[in] ctx       The smbconf context to drop the config.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_drop(struct smbconf_ctx *ctx);
 
@@ -153,7 +153,7 @@ sbcErr smbconf_drop(struct smbconf_ctx *ctx);
  * @param[out] services  A pointer to store the services.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  *
  * @see smbconf_service
  */
@@ -174,7 +174,7 @@ sbcErr smbconf_get_config(struct smbconf_ctx *ctx,
  * @param[in] share_names A pointer to store the share names.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_get_share_names(struct smbconf_ctx *ctx,
                               TALLOC_CTX *mem_ctx,
@@ -200,7 +200,7 @@ bool smbconf_share_exists(struct smbconf_ctx *ctx, const char *servicename);
  * @param[in] servicename The name of the service to add.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_create_share(struct smbconf_ctx *ctx, const char *servicename);
 
@@ -212,7 +212,7 @@ sbcErr smbconf_create_share(struct smbconf_ctx *ctx, const char *servicename);
  * @param[in] service   The definition for the added service.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_create_set_share(struct smbconf_ctx *ctx,
                                struct smbconf_service *service);
@@ -230,7 +230,7 @@ sbcErr smbconf_create_set_share(struct smbconf_ctx *ctx,
  *                      share.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  *
  * @see smbconf_service
  */
@@ -247,7 +247,7 @@ sbcErr smbconf_get_share(struct smbconf_ctx *ctx,
  * @param[in] servicename The service name to delete.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_delete_share(struct smbconf_ctx *ctx,
                            const char *servicename);
@@ -264,7 +264,7 @@ sbcErr smbconf_delete_share(struct smbconf_ctx *ctx,
  * @param[in] valstr    The value to set.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_set_parameter(struct smbconf_ctx *ctx,
                             const char *service,
@@ -284,7 +284,7 @@ sbcErr smbconf_set_parameter(struct smbconf_ctx *ctx,
  * @param[in] val       The value to set.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_set_global_parameter(struct smbconf_ctx *ctx,
                                    const char *param, const char *val);
@@ -303,7 +303,7 @@ sbcErr smbconf_set_global_parameter(struct smbconf_ctx *ctx,
  * @param[out] valstr   A pointer to store the value as a string.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_get_parameter(struct smbconf_ctx *ctx,
                             TALLOC_CTX *mem_ctx,
@@ -325,7 +325,7 @@ sbcErr smbconf_get_parameter(struct smbconf_ctx *ctx,
  * @param[out] valstr   A pointer to store the value as a string.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_get_global_parameter(struct smbconf_ctx *ctx,
                                    TALLOC_CTX *mem_ctx,
@@ -342,7 +342,7 @@ sbcErr smbconf_get_global_parameter(struct smbconf_ctx *ctx,
  * @param[in] param     The name of the parameter to delete.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_delete_parameter(struct smbconf_ctx *ctx,
                                const char *service, const char *param);
@@ -357,7 +357,7 @@ sbcErr smbconf_delete_parameter(struct smbconf_ctx *ctx,
  * @param[in] param     The name of the parameter to delete.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_delete_global_parameter(struct smbconf_ctx *ctx,
                                       const char *param);
@@ -376,7 +376,7 @@ sbcErr smbconf_delete_global_parameter(struct smbconf_ctx *ctx,
  * @param[out] includes A pointer to store the paths of the included files.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_get_includes(struct smbconf_ctx *ctx,
                            TALLOC_CTX *mem_ctx,
@@ -395,7 +395,7 @@ sbcErr smbconf_get_includes(struct smbconf_ctx *ctx,
  * @param[out] includes A pointer to store the paths of the included files.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_get_global_includes(struct smbconf_ctx *ctx,
                                   TALLOC_CTX *mem_ctx,
@@ -413,7 +413,7 @@ sbcErr smbconf_get_global_includes(struct smbconf_ctx *ctx,
  * @param[in]  includes A list of paths to include.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_set_includes(struct smbconf_ctx *ctx,
                            const char *service,
@@ -429,7 +429,7 @@ sbcErr smbconf_set_includes(struct smbconf_ctx *ctx,
  * @param[in]  includes A list of paths to include.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_set_global_includes(struct smbconf_ctx *ctx,
                                   uint32_t num_includes,
@@ -443,7 +443,7 @@ sbcErr smbconf_set_global_includes(struct smbconf_ctx *ctx,
  * @param[in]  service  The name of the service to delete the includes from.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service);
 
@@ -453,7 +453,7 @@ sbcErr smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service);
  * @param[in]  ctx      The smbconf context to use.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_delete_global_includes(struct smbconf_ctx *ctx);
 
@@ -466,7 +466,7 @@ sbcErr smbconf_delete_global_includes(struct smbconf_ctx *ctx);
  * @param[in] ctx       The smbconf context to start the transaction.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  */
 sbcErr smbconf_transaction_start(struct smbconf_ctx *ctx);
 
@@ -479,7 +479,7 @@ sbcErr smbconf_transaction_start(struct smbconf_ctx *ctx);
  * @param[in] ctx       The smbconf context to commit the transaction.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  *
  * @see smbconf_transaction_start()
  */
@@ -494,7 +494,7 @@ sbcErr smbconf_transaction_commit(struct smbconf_ctx *ctx);
  * @param[in] ctx       The smbconf context to cancel the transaction.
  *
  * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
- *                      error occured.
+ *                      error occurred.
  *
  * @see smbconf_transaction_start()
  */
index 1f00dd810ae33422498ce36ce524c5c8597762db..c7e9f64f4059accdbae5dd5d17bca0ce5d8edda3 100644 (file)
@@ -40,7 +40,7 @@ init_module_fn load_module(const char *path, bool is_probe, void **handle_out)
        handle = dlopen(path, RTLD_NOW);
 
        /* This call should reset any possible non-fatal errors that
-          occured since last call to dl* functions */
+          occurred since last call to dl* functions */
        error = dlerror();
 
        if (handle == NULL) {
index 1cfb02cb390c448add1688e20cb444da5969695e..ca599d316ca3ad987ee895bcd19d1836c4b3a024 100644 (file)
@@ -741,7 +741,7 @@ static void callback_do_join(GtkWidget *widget,
                                                        GTK_DIALOG_DESTROY_WITH_PARENT,
                                                        GTK_MESSAGE_ERROR,
                                                        GTK_BUTTONS_CLOSE,
-                                                       "The following error occured attempting to unjoin the %s: \"%s\": %s",
+                                                       "The following error occurred attempting to unjoin the %s: \"%s\": %s",
                                                        initial_workgroup_type,
                                                        state->name_buffer_initial,
                                                        err_str);
@@ -830,7 +830,7 @@ static void callback_do_join(GtkWidget *widget,
                                                GTK_DIALOG_DESTROY_WITH_PARENT,
                                                GTK_MESSAGE_ERROR,
                                                GTK_BUTTONS_CLOSE,
-                                               "The following error occured attempting to join the %s: \"%s\": %s",
+                                               "The following error occurred attempting to join the %s: \"%s\": %s",
                                                new_workgroup_type,
                                                state->name_buffer_new,
                                                err_str);
index b01201e180e6101f2f6c966e51c7d6a825944521..34d250fda50eb7b56ef13b741af8d8715dfbeba7 100644 (file)
@@ -1925,7 +1925,7 @@ bool ads_element_in_array(const char **el_array, size_t num_el, const char *el)
  *
  * @param[in]  num_spns     The number of principals stored in the array.
  *
- * @return                  0 on success, or a ADS error if a failure occured.
+ * @return                  0 on success, or a ADS error if a failure occurred.
  */
 ADS_STATUS ads_get_service_principal_names(TALLOC_CTX *mem_ctx,
                                           ADS_STRUCT *ads,
index 2887344e516c93ce5e441855c0d4efd46a574549..dfc77b9eecbffc69f621809d6f17eaea8c627fdd 100644 (file)
@@ -703,7 +703,7 @@ static bool ad_unpack(struct adouble *ad, const size_t nentries,
  * bytes containing packed xattrs. Netatalk can't deal with that, so
  * we simply discard the packed xattrs.
  *
- * @return -1 in case an error occured, 0 if no conversion was done, 1
+ * @return -1 in case an error occurred, 0 if no conversion was done, 1
  * otherwise
  **/
 static int ad_convert(struct adouble *ad, int fd)
@@ -1680,7 +1680,7 @@ static off_t denymode_to_netatalk_brl(enum apple_fork fork_type,
  * Call fcntl() with an exclusive F_GETLK request in order to
  * determine if there's an exisiting shared lock
  *
- * @return true if the requested lock was found or any error occured
+ * @return true if the requested lock was found or any error occurred
  *         false if the lock was not found
  **/
 static bool test_netatalk_lock(files_struct *fsp, off_t in_offset)
index f50a5e92d03676c589f052c92df3b9c89c71a180..518489a64a89f4d6fbc722f5cac4e1b80b496432 100644 (file)
@@ -429,7 +429,7 @@ NTSTATUS dcerpc_lsa_lookup_sids_generic(struct dcerpc_binding_handle *h,
                    !NT_STATUS_EQUAL(hunk_result, STATUS_SOME_UNMAPPED) &&
                    !NT_STATUS_EQUAL(hunk_result, NT_STATUS_NONE_MAPPED))
                {
-                       /* An actual error occured */
+                       /* An actual error occurred */
                        *presult = hunk_result;
                        goto fail;
                }
@@ -618,7 +618,7 @@ NTSTATUS dcerpc_lsa_lookup_names_generic(struct dcerpc_binding_handle *h,
 
        if (!NT_STATUS_IS_OK(*presult) &&
            !NT_STATUS_EQUAL(*presult, STATUS_SOME_UNMAPPED)) {
-               /* An actual error occured */
+               /* An actual error occurred */
                goto done;
        }
 
index 14014ef7e8d85545b1cc660f67480bdc4590b61c..cb3b8e643403cac55dac65220cfc3a1a4a46ab00 100644 (file)
@@ -543,7 +543,7 @@ static NTSTATUS rpcint_binding_handle_ex(TALLOC_CTX *mem_ctx,
  *                             dcerpc_binding_handle
  *
  * @return              NT_STATUS_OK on success, a corresponding NT status if an
- *                      error occured.
+ *                      error occurred.
  *
  * @code
  *   struct dcerpc_binding_handle *winreg_binding;
@@ -590,7 +590,7 @@ NTSTATUS rpcint_binding_handle(TALLOC_CTX *mem_ctx,
  * @param[out] presult  A pointer to store the connected rpc client pipe.
  *
  * @return              NT_STATUS_OK on success, a corresponding NT status if an
- *                      error occured.
+ *                      error occurred.
  */
 NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx,
                                const struct ndr_interface_table *ndr_table,
@@ -1015,7 +1015,7 @@ done:
  * @param[out] presult  A pointer to store the connected rpc client pipe.
  *
  * @return              NT_STATUS_OK on success, a corresponding NT status if an
- *                      error occured.
+ *                      error occurred.
  *
  * @code
  *   struct rpc_pipe_client *winreg_pipe;
index 80d30cffbbf129fdf7cea2535e11a036e50679b9..e569f22ac7c9f85034be8bf7b448210427f45f05 100644 (file)
@@ -5949,7 +5949,7 @@ WERROR _spoolss_StartDocPrinter(struct pipes_struct *p,
                               Printer->devmode,
                               &Printer->jobid);
 
-       /* An error occured in print_job_start() so return an appropriate
+       /* An error occurred in print_job_start() so return an appropriate
           NT error code. */
 
        if (!W_ERROR_IS_OK(werr)) {
index 55f28d2f5b3e6ca02b58e3484812be1d84a2aaa5..5a20d87514ca0236b9263a15bc2c3850121db420 100644 (file)
@@ -206,7 +206,7 @@ static void wb_groups_members_done(struct tevent_req *subreq)
 
        /*
         * In this error handling here we might have to be a bit more generous
-        * and just continue if an error occured.
+        * and just continue if an error occurred.
         */
 
        if (!NT_STATUS_IS_OK(status)) {
index f55732ac008e23ccc5ea709d40a39ff8270ba5a4..c48ad14b60c5a00bd424bfa48e6c8973473120ae 100644 (file)
@@ -10,7 +10,7 @@ proc setup_test { remote_prompt sharepath sharename username local_hostname \
        set err_str [create_directory $remote_prompt $sharepath]
        if { $err_str != "OK" } {
                if { $err_str != "Directory already exists" } {
-                       puts stderr "\nUnexpected error occured in setup_test.\n"
+                       puts stderr "\nUnexpected error occurred in setup_test.\n"
                        puts stderr "Function create_directory returned $err_str."
                } else {
                        puts stdout "\nDirectory $sharepath exists."
@@ -33,7 +33,7 @@ proc setup_test { remote_prompt sharepath sharename username local_hostname \
                        $sharename]
        if { $err_str != "OK" } {
                if { $err_str != "The name has already been shared" } {
-                       puts stderr "\nUnexpected error occured in setup_test."
+                       puts stderr "\nUnexpected error occurred in setup_test."
                        puts stderr "Function create_share returned $err_str."
                } else {
                        puts stdout "\nShare $sharename exists."
index 536d34278afc175812078a0dd7e16a52c5cc4311..7dcb9a7014c07e310c21ec7b797994177f7e116b 100644 (file)
@@ -967,7 +967,7 @@ bool run_benchrw(struct torture_context *tctx)
                                req->async.fn = benchrw_callback;
                                req->async.private_data=state[i];
                                break;
-                       /* error occured , finish */
+                       /* error occurred , finish */
                        case ERROR:
                                finished++;
                                success=false;