Skip to content

Commit ba0da1d

Browse files
authored
Merge pull request #289 from qobood/3.3
Fix miscellaneous typos
2 parents 9d77fe8 + 40be423 commit ba0da1d

23 files changed

+39
-39
lines changed

include/ma_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ struct mysql_async_context {
301301
void (*suspend_resume_hook)(my_bool suspend, void *user_data);
302302
void *suspend_resume_hook_user_data;
303303

304-
/* If non-NULL, this is a poitner to the result of getaddrinfo() currently
304+
/* If non-NULL, this is a pointer to the result of getaddrinfo() currently
305305
* under traversal in pvio_socket_connect(). It gets reset to NULL when a
306306
* connection has been established to a server. The main objective is to
307307
* free this memory resource in mysql_close() while an initiated connection

include/ma_global.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ typedef unsigned short ushort;
290290
/* From old s-system.h */
291291

292292
/*
293-
Support macros for non ansi & other old compilers. Since such
294-
things are no longer supported we do nothing. We keep then since
293+
Support macros for non-ansi & other old compilers. Since such
294+
things are no longer supported we do nothing. We keep them since
295295
some of our code may still be needed to upgrade old customers.
296296
*/
297297
#define _VARARGS(X) X
@@ -394,7 +394,7 @@ typedef SOCKET_SIZE_TYPE size_socket;
394394
#define FN_EXTCHAR '.'
395395
#define FN_HOMELIB '~' /* ~/ is used as abbrev for home dir */
396396
#define FN_CURLIB '.' /* ./ is used as abbrev for current dir */
397-
#define FN_PARENTDIR ".." /* Parentdirectory; Must be a string */
397+
#define FN_PARENTDIR ".." /* Parent directory; Must be a string */
398398
#define FN_DEVCHAR ':'
399399

400400
#ifndef FN_LIBCHAR

include/ma_pvio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#endif
1010

1111
/* CONC-492: Allow to build plugins outside of MariaDB Connector/C
12-
source tree wnen ma_global.h was not included. */
12+
source tree when ma_global.h was not included. */
1313
#if !defined(_global_h) && !defined(MY_GLOBAL_INCLUDED)
1414
typedef unsigned char uchar;
1515
#endif

include/mariadb_com.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ enum enum_server_command
170170
#define CLIENT_SSL_VERIFY_SERVER_CERT_OBSOLETE CLIENT_SSL_VERIFY_SERVER_CERT
171171
#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
172172

173-
/* MariaDB specific capabilities */
173+
/* MariaDB-specific capabilities */
174174
#define MARIADB_CLIENT_FLAGS 0xFFFFFFFF00000000ULL
175175
#define MARIADB_CLIENT_PROGRESS (1ULL << 32)
176176
#define MARIADB_CLIENT_RESERVED_1 (1ULL << 33) /* Former COM_MULTI, don't use */

include/mysql.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ extern const char *SQLSTATE_UNKNOWN;
225225
MYSQL_OPT_TLS_VERSION,
226226
MYSQL_OPT_ZSTD_COMPRESSION_LEVEL,
227227

228-
/* MariaDB specific */
228+
/* MariaDB-specific */
229229
MYSQL_PROGRESS_CALLBACK=5999,
230230
MYSQL_OPT_NONBLOCK,
231231
/* MariaDB Connector/C specific */

libmariadb/ma_charset.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ size_t mysql_cset_escape_slashes(const MARIADB_CHARSET_INFO * cset, char *newstr
12121212
escape_overflow = TRUE;
12131213
break;
12141214
}
1215-
/* copy non escaped character */
1215+
/* copy non-escaped character */
12161216
*newstr++ = *escapestr;
12171217
}
12181218
}
@@ -1394,7 +1394,7 @@ struct st_madb_os_charset MADB_OS_CHARSET[]=
13941394
{"57011", "ISCII Punjabi", NULL, NULL, MADB_CS_UNSUPPORTED},
13951395
{"65000", "utf-7 Unicode (UTF-7)", NULL, NULL, MADB_CS_UNSUPPORTED},
13961396
{"65001", "utf-8 Unicode (UTF-8)", "utf8", NULL, MADB_CS_EXACT},
1397-
/* non Windows */
1397+
/* non-Windows */
13981398
#else
13991399
/* iconv encodings */
14001400
{"ASCII", "US-ASCII", "ascii", "ASCII", MADB_CS_APPROX},

libmariadb/ma_client_plugin.c.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ int mysql_client_plugin_init()
302302
/**
303303
Deinitializes the client plugin layer.
304304

305-
Unloades all client plugins and frees any associated resources.
305+
Unloads all client plugins and frees any associated resources.
306306
*/
307307

308308
void mysql_client_plugin_deinit()

libmariadb/ma_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/*
2020
=======================================================================
2121
NOTE: this library implements SQL standard "exact numeric" type
22-
and is not at all generic, but rather intentinally crippled to
22+
and is not at all generic, but rather intentionally crippled to
2323
follow the standard :)
2424
=======================================================================
2525
Quoting the standard

libmariadb/ma_dtoa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ typedef struct Bigint
597597
} Bigint;
598598

599599

600-
/* A simple stack-memory based allocator for Bigints */
600+
/* A simple stack-memory-based allocator for Bigints */
601601

602602
typedef struct Stack_alloc
603603
{

libmariadb/ma_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ MA_FILE *ma_open(const char *location, const char *mode, MYSQL *mysql)
5656
}
5757
}
5858
#ifdef _WIN32
59-
/* See CONC-44: we need to support non ascii filenames too, so we convert
59+
/* See CONC-44: we need to support non-ascii filenames too, so we convert
6060
current character set to wchar_t and try to open the file via _wsopen */
6161
else
6262
{

0 commit comments

Comments
 (0)