fix spelling
authorBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 22 Feb 2016 16:01:43 +0000 (17:01 +0100)
committerBernhard Miklautz <bernhard.miklautz@thincast.com>
Mon, 22 Feb 2016 16:01:43 +0000 (17:01 +0100)
replace occured with occurred
Fixes #3142

channels/drive/client/dirent.h
channels/urbdrc/client/urbdrc_main.c
client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/presentation/BookmarkActivity.java
client/common/cmdline.c
libfreerdp/core/errconnect.c
libfreerdp/core/tcp.c
winpr/include/winpr/error.h
winpr/include/winpr/nt.h
winpr/libwinpr/comm/comm_serial_sys.c

index 9a293da..d9efa36 100644 (file)
@@ -286,7 +286,7 @@ static struct dirent *readdir(DIR *dirp)
          return NULL;
       }
       if (FindNextFileA (dirp->search_handle, &dirp->find_data) == FALSE) {
-         /* the very last entry has been processed or an error occured */
+         /* the very last entry has been processed or an error occurred */
          FindClose (dirp->search_handle);
          dirp->search_handle = INVALID_HANDLE_VALUE;
          return NULL;
index 78cd77d..1e4c0a7 100644 (file)
@@ -1026,7 +1026,7 @@ static void* urbdrc_search_usb_device(void* arg)
                        }
                        else
                        {
-                               WLog_ERR(TAG,  "No Device from receive_device(). An error occured.");
+                               WLog_ERR(TAG,  "No Device from receive_device(). An error occurred.");
                        }
                }
        }
index 9c8140e..e78bb2a 100644 (file)
@@ -575,7 +575,7 @@ public class BookmarkActivity extends PreferenceActivity implements
                if (!verifyFailed && sharedPreferences.getInt("bookmark.port", -1) <= 0)
                        verifyFailed = true;
 
-               // if an error occured - display toast and return false
+               // if an error occurred - display toast and return false
                return (!verifyFailed);
        }
 
index b1f64ee..510ef71 100644 (file)
@@ -1684,7 +1684,7 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
                        {
                                id = (unsigned long int) freerdp_map_keyboard_layout_name_to_id(arg->Value);
                                if (id == -1)
-                                       WLog_ERR(TAG, "A problem occured while mapping the layout name to id");
+                                       WLog_ERR(TAG, "A problem occurred while mapping the layout name to id");
                                else if (id == 0)
                                {
                                        WLog_ERR(TAG, "Could not identify keyboard layout: %s", arg->Value);
index a52912b..cd983b4 100644 (file)
@@ -38,7 +38,7 @@
                "A configuration error prevented a connection to be established."
 
 #define ERRCONNECT_CONNECT_UNDEFINED_STRING \
-               "A undefined connection error occured."
+               "A undefined connection error occurred."
 
 #define ERRCONNECT_POST_CONNECT_FAILED_STRING \
                "The connection attempt was aborted due to post connect configuration errors."
index 24bbcd0..afd7015 100644 (file)
@@ -489,7 +489,7 @@ static int transport_bio_buffered_write(BIO* bio, const char* buf, int num)
         */
        if (buf && num && !ringbuffer_write(&ptr->xmitBuffer, (const BYTE*) buf, num))
        {
-               WLog_ERR(TAG, "an error occured when writing (num: %d)", num);
+               WLog_ERR(TAG, "an error occurred when writing (num: %d)", num);
                return -1;
        }
 
index e84b8f7..0a1511b 100644 (file)
 #define ERROR_DEVICE_ENUMERATION_ERROR                                                 0x00000288
 #define ERROR_MOUNT_POINT_NOT_RESOLVED                                                 0x00000289
 #define ERROR_INVALID_DEVICE_OBJECT_PARAMETER                                          0x0000028A
+/* The following is not a typo. It's the same spelling as in the Microsoft headers */
 #define ERROR_MCA_OCCURED                                                              0x0000028B
 #define ERROR_DRIVER_DATABASE_ERROR                                                    0x0000028C
 #define ERROR_SYSTEM_HIVE_TOO_LARGE                                                    0x0000028D
index d0761eb..68bccc6 100644 (file)
 #define STATUS_WAIT_FOR_OPLOCK                                         ((NTSTATUS)0x00000367)
 #define STATUS_MOUNT_POINT_NOT_RESOLVED                                        ((NTSTATUS)0xC0000368)
 #define STATUS_INVALID_DEVICE_OBJECT_PARAMETER                         ((NTSTATUS)0xC0000369)
+/* The following is not a typo. It's the same spelling as in the Microsoft headers */
 #define STATUS_MCA_OCCURED                                             ((NTSTATUS)0xC000036A)
 #define STATUS_DRIVER_BLOCKED_CRITICAL                                 ((NTSTATUS)0xC000036B)
 #define STATUS_DRIVER_BLOCKED                                          ((NTSTATUS)0xC000036C)
index 5c8b027..04e11da 100644 (file)
@@ -1344,7 +1344,7 @@ static BOOL _get_commstatus(WINPR_COMM *pComm, SERIAL_STATUS *pCommstatus)
        }
        else
        {
-               /* FIXME: "is 80 percent full" from the specs is ambiguous, need to track when it previously occured? */
+               /* FIXME: "is 80 percent full" from the specs is ambiguous, need to track when it previously * occurred? */
                pComm->PendingEvents &= ~SERIAL_EV_RX80FULL;
        }