diff options
author | a1346054 <36859588+a1346054@users.noreply.github.com> | 2022-09-03 02:48:01 +0300 |
---|---|---|
committer | a1346054 <36859588+a1346054@users.noreply.github.com> | 2022-09-03 05:01:48 +0300 |
commit | 7fe18cc1c004f6a566b0097f5220ec2791a608b8 (patch) | |
tree | 0148814e13d1babf842870fdd4c336d63ed95712 /common | |
parent | 5d0c4b4e3a7d31f0e71bdd867529424482cf10e0 (diff) |
fix typos
Diffstat (limited to 'common')
-rw-r--r-- | common/base64.c | 2 | ||||
-rw-r--r-- | common/log.h | 14 | ||||
-rw-r--r-- | common/ms-rdpele.h | 2 | ||||
-rw-r--r-- | common/os_calls.c | 8 | ||||
-rw-r--r-- | common/pixman-region.c | 2 | ||||
-rw-r--r-- | common/string_calls.h | 4 | ||||
-rw-r--r-- | common/trans.c | 2 | ||||
-rw-r--r-- | common/trans.h | 2 | ||||
-rw-r--r-- | common/xrdp_constants.h | 2 |
9 files changed, 19 insertions, 19 deletions
diff --git a/common/base64.c b/common/base64.c index 0b8cfe67..3fc8a0c1 100644 --- a/common/base64.c +++ b/common/base64.c @@ -32,7 +32,7 @@ * Values for invalid and padding characters, used in the charmap * for converting base64 to binary * - * Thse value are specially chosen to make it easy to detect padding or + * These values are specially chosen to make it easy to detect padding or * invalid characters by or-ing together the values looked up in * a base64 quantum */ #define E_INVALID 0x40 diff --git a/common/log.h b/common/log.h index 17615560..a369f0eb 100644 --- a/common/log.h +++ b/common/log.h @@ -81,7 +81,7 @@ enum logReturns * @brief Logging macro for messages that are for an XRDP developer to * understand and debug XRDP code. * - * Note: all log levels are relavant to help a developer understand XRDP at + * Note: all log levels are relevant to help a developer understand XRDP at * different levels of granularity. * * Note: the logging function calls are removed when USE_DEVEL_LOGGING is @@ -107,7 +107,7 @@ enum logReturns log_message_with_location(__func__, __FILE__, __LINE__, log_level, args) /** - * @brief Logging macro for messages that are for a systeam administrator to + * @brief Logging macro for messages that are for a system administrator to * configure and run XRDP on their machine. * * Note: the logging function calls contain additional code location info when @@ -297,8 +297,8 @@ internal_log_is_enabled_for_level(const enum logLevels log_level, const enum logLevels override_log_level); /** - * @param function_name, the function name (typicaly the __func__ macro) - * @param file_name, the file name (typicaly the __FILE__ macro) + * @param function_name, the function name (typically the __func__ macro) + * @param file_name, the file name (typically the __FILE__ macro) * @param[out] log_level_return, the log level to use instead of the destination log level * @return true if the logger location overrides the destination log levels */ @@ -402,9 +402,9 @@ log_hexdump(const enum logLevels log_level, * * Please prefer to use the LOG and LOG_DEVEL macros instead of this function directly. * - * @param function_name, the function name (typicaly the __func__ macro) - * @param file_name, the file name (typicaly the __FILE__ macro) - * @param line_number, the line number in the file (typicaly the __LINE__ macro) + * @param function_name, the function name (typically the __func__ macro) + * @param file_name, the file name (typically the __FILE__ macro) + * @param line_number, the line number in the file (typically the __LINE__ macro) * @param lvl, the loglevel * @param msg, the logtext. * @param ... diff --git a/common/ms-rdpele.h b/common/ms-rdpele.h index 845efe32..be517550 100644 --- a/common/ms-rdpele.h +++ b/common/ms-rdpele.h @@ -24,7 +24,7 @@ /* LicensingMessage (MS-RDPELE 2.2.2) */ /* TODO: to be renamed */ -#define LICENCE_TAG_DEMAND 0x01 /* LICNSE_REQUEST */ +#define LICENCE_TAG_DEMAND 0x01 /* LICENSE_REQUEST */ #define LICENCE_TAG_AUTHREQ 0x02 /* PLATFORM_CHALLENGE */ #define LICENCE_TAG_ISSUE 0x03 /* NEW_LICENSE */ #define LICENCE_TAG_REISSUE 0x04 /* UPGRADE_LICENSE */ diff --git a/common/os_calls.c b/common/os_calls.c index 9f9c3f31..c8bade26 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -2615,7 +2615,7 @@ g_execvp(const char *p1, char *args[]) g_strnjoin(args_str, ARGS_STR_LEN, " ", (const char **) args, args_len); LOG(LOG_LEVEL_DEBUG, - "Calling exec (excutable: %s, arguments: %s)", + "Calling exec (executable: %s, arguments: %s)", p1, args_str); g_rm_temp_dir(); @@ -2623,7 +2623,7 @@ g_execvp(const char *p1, char *args[]) /* should not get here */ LOG(LOG_LEVEL_ERROR, - "Error calling exec (excutable: %s, arguments: %s) " + "Error calling exec (executable: %s, arguments: %s) " "returned errno: %d, description: %s", p1, args_str, g_get_errno(), g_get_strerror()); @@ -2647,7 +2647,7 @@ g_execlp3(const char *a1, const char *a2, const char *a3) g_strnjoin(args_str, ARGS_STR_LEN, " ", args, 2); LOG(LOG_LEVEL_DEBUG, - "Calling exec (excutable: %s, arguments: %s)", + "Calling exec (executable: %s, arguments: %s)", a1, args_str); g_rm_temp_dir(); @@ -2655,7 +2655,7 @@ g_execlp3(const char *a1, const char *a2, const char *a3) /* should not get here */ LOG(LOG_LEVEL_ERROR, - "Error calling exec (excutable: %s, arguments: %s) " + "Error calling exec (executable: %s, arguments: %s) " "returned errno: %d, description: %s", a1, args_str, g_get_errno(), g_get_strerror()); diff --git a/common/pixman-region.c b/common/pixman-region.c index ecca41fd..d572c4f4 100644 --- a/common/pixman-region.c +++ b/common/pixman-region.c @@ -1652,7 +1652,7 @@ quick_sort_rects ( * * Side Effects: * The passed-in ``region'' may be modified. - * overlap set to TRUE if any retangles overlapped, + * overlap set to TRUE if any rectangles overlapped, * else FALSE; * * Strategy: diff --git a/common/string_calls.h b/common/string_calls.h index 29c066e3..49092c44 100644 --- a/common/string_calls.h +++ b/common/string_calls.h @@ -27,7 +27,7 @@ * Map a character to a string value * * This structure is used by g_format_info_string() to specify the - * string which chould be output for %'ch', where ch is a character + * string which could be output for %'ch', where ch is a character */ struct info_string_tag { @@ -132,7 +132,7 @@ g_text2bool(const char *s); * @param[in] src An array of strings to join. The array must be non-null. * Array items may be NULL and are processed as zero length strings. * @param[in] src_len The number of strings to join in the src array. Must be > 0 - * @return A pointer to the begining of the joined string (ie. returns dest). + * @return A pointer to the beginning of the joined string (ie. returns dest). */ char * g_strnjoin(char *dest, int dest_len, const char *joiner, const char *src[], int src_len); diff --git a/common/trans.c b/common/trans.c index 6b39243b..2300aa07 100644 --- a/common/trans.c +++ b/common/trans.c @@ -700,7 +700,7 @@ poll_for_async_connect(struct trans *self, int start_time, int timeout) while (ms_remaining > 0) { int poll_time = ms_remaining; - /* Lower bound for waititng for a result */ + /* Lower bound for waiting for a result */ if (poll_time < 100) { poll_time = 100; diff --git a/common/trans.h b/common/trans.h index 3d3991ac..2ed7ef9d 100644 --- a/common/trans.h +++ b/common/trans.h @@ -69,7 +69,7 @@ enum xrdp_source * While input is being read from a 'struct trans' and processed, the * cur_source member is set to the my_source member from the transport. * During this processing, trans_write_copy() may be called to send output - * on another struct trans. If this happens, and the ouput needs to be + * on another struct trans. If this happens, and the output needs to be * buffered, trans_write_copy() can add the number of bytes generated by * the input trans to the source field for the cur_source. This allows us to * see how much output has been buffered for each input source. diff --git a/common/xrdp_constants.h b/common/xrdp_constants.h index 7adce229..1e844697 100644 --- a/common/xrdp_constants.h +++ b/common/xrdp_constants.h @@ -29,7 +29,7 @@ * * xrdp constants * - * Constants defined in publically available Microsoft documents are not + * Constants defined in publicly available Microsoft documents are not * stored here, but are stored in the include files ms-*.h, where the name * of the file is the name of the document defining the constant. * |