summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2020-07-22 15:19:58 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2020-07-22 15:19:58 -0700
commit2b7598221d87049d03e9a95fcb541c37c8728184 (patch)
tree2908e9da747a4a03f2fcaa47a26895b350cb1825 /src
parentf9e3378ebcfc79ff00591b8617a68e97580a741e (diff)
downloadxorg-lib-libX11-2b7598221d87049d03e9a95fcb541c37c8728184.tar.gz
Fix spelling/wording issues
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/Context.c4
-rw-r--r--src/FetchName.c4
-rw-r--r--src/Quarks.c4
-rw-r--r--src/Region.c2
-rw-r--r--src/WMProps.c2
-rw-r--r--src/XlibInt.c2
-rw-r--r--src/Xrm.c6
-rw-r--r--src/globals.c2
-rw-r--r--src/imConv.c4
-rw-r--r--src/os2Stubs.c2
-rw-r--r--src/util/makekeys.c2
-rw-r--r--src/xcms/HVCGcVC.c2
-rw-r--r--src/xcms/HVCMxC.c2
-rw-r--r--src/xcms/LRGB.c2
-rw-r--r--src/xcms/cmsInt.c4
-rw-r--r--src/xcms/cmsProp.c2
-rw-r--r--src/xlibi18n/XDefaultOMIF.c2
-rw-r--r--src/xlibi18n/XlcPublic.h2
-rw-r--r--src/xlibi18n/Xlcint.h4
-rw-r--r--src/xlibi18n/lcCharSet.c4
-rw-r--r--src/xlibi18n/lcDB.c2
-rw-r--r--src/xlibi18n/lcFile.c12
22 files changed, 36 insertions, 36 deletions
diff --git a/src/Context.c b/src/Context.c
index 8a078713..ff906120 100644
--- a/src/Context.c
+++ b/src/Context.c
@@ -152,7 +152,7 @@ static void _XFreeContextDB(Display *display)
/* Public routines. */
/* Save the given value of data to correspond with the keys XID and context.
- Returns nonzero error code if an error has occured, 0 otherwise.
+ Returns nonzero error code if an error has occurred, 0 otherwise.
Possible errors are Out-of-memory.
*/
@@ -230,7 +230,7 @@ int XSaveContext(
/* Given an XID and context, returns the associated data. Note that data
here is a pointer since it is a return value. Returns nonzero error code
- if an error has occured, 0 otherwise. Possible errors are Entry-not-found.
+ if an error has occurred, 0 otherwise. Possible errors are Entry-not-found.
*/
int XFindContext(Display *display, XID rid, XContext context, XPointer *data)
diff --git a/src/FetchName.c b/src/FetchName.c
index 160eb5bd..d8a01b14 100644
--- a/src/FetchName.c
+++ b/src/FetchName.c
@@ -51,7 +51,7 @@ Status XFetchName (
}
if ( (actual_type == XA_STRING) && (actual_format == 8) ) {
- /* The data returned by XGetWindowProperty is guarranteed to
+ /* The data returned by XGetWindowProperty is guaranteed to
contain one extra byte that is null terminated to make retrieveing
string properties easy. */
@@ -82,7 +82,7 @@ Status XGetIconName (
}
if ( (actual_type == XA_STRING) && (actual_format == 8) ) {
- /* The data returned by XGetWindowProperty is guarranteed to
+ /* The data returned by XGetWindowProperty is guaranteed to
contain one extra byte that is null terminated to make retrieveing
string properties easy. */
diff --git a/src/Quarks.c b/src/Quarks.c
index df820229..0dd91968 100644
--- a/src/Quarks.c
+++ b/src/Quarks.c
@@ -63,7 +63,7 @@ from The Open Group.
#ifdef PERMQ
typedef unsigned char Bits;
#endif
-typedef unsigned long Entry; /* dont confuse with EntryRec from Xintatom.h */
+typedef unsigned long Entry; /* don't confuse with EntryRec from Xintatom.h */
static XrmQuark nextQuark = 1; /* next available quark number */
static unsigned long quarkMask = 0;
@@ -398,7 +398,7 @@ XrmString XrmQuarkToString(register XrmQuark quark)
else {
#ifdef PERMQ
/* We have to mark the quark as permanent, since the caller might hold
- * onto the string pointer forver.
+ * onto the string pointer forever.
*/
SETPERM(quark);
#endif
diff --git a/src/Region.c b/src/Region.c
index d6d9da9d..974f4302 100644
--- a/src/Region.c
+++ b/src/Region.c
@@ -1304,7 +1304,7 @@ miSubtractO (
else if (r2->x1 <= x1)
{
/*
- * Subtrahend preceeds minuend: nuke left edge of minuend.
+ * Subtrahend precedes minuend: nuke left edge of minuend.
*/
x1 = r2->x2;
if (x1 >= r1->x2)
diff --git a/src/WMProps.c b/src/WMProps.c
index 12b4b361..b99d35f2 100644
--- a/src/WMProps.c
+++ b/src/WMProps.c
@@ -80,7 +80,7 @@ void XSetWMProperties (
char **argv, /* command line */
int argc, /* size of command line */
XSizeHints *sizeHints, /* size hints for window in its normal state */
- XWMHints *wmHints, /* miscelaneous window manager hints */
+ XWMHints *wmHints, /* miscellaneous window manager hints */
XClassHint *classHints) /* resource name and class */
{
XTextProperty textprop;
diff --git a/src/XlibInt.c b/src/XlibInt.c
index 5f899c8d..3f97d72e 100644
--- a/src/XlibInt.c
+++ b/src/XlibInt.c
@@ -188,7 +188,7 @@ void _XPollfdCacheDel(
static int sync_hazard(Display *dpy)
{
/*
- * "span" and "hazard" need to be signed such that the ">=" comparision
+ * "span" and "hazard" need to be signed such that the ">=" comparison
* works correctly in the case that hazard is greater than 65525
*/
int64_t span = X_DPY_GET_REQUEST(dpy) - X_DPY_GET_LAST_REQUEST_READ(dpy);
diff --git a/src/Xrm.c b/src/Xrm.c
index 41c11644..a8ebf883 100644
--- a/src/Xrm.c
+++ b/src/Xrm.c
@@ -81,7 +81,7 @@ information is kept on a per-level basis.
(3) Sometimes the widget instance tree is structured such that you get the same
class name repeated on the fully qualified widget name. This can result in the
-same database level occuring multiple times on the search list. The code below
+same database level occurring multiple times on the search list. The code below
only checks to see if you get two identical search lists in a row, rather than
look back through all database levels, but in practice this removes all
duplicates I've ever observed.
@@ -1307,7 +1307,7 @@ static void GetDatabase(
char oldc;
/*
- * A parsing error has occured, toss everything on the line
+ * A parsing error has occurred, toss everything on the line
* a new_line can still be escaped with a '\'.
*/
@@ -1477,7 +1477,7 @@ static void GetDatabase(
/*
* It is important to make sure that there is room for at least
* four more characters in the buffer, since I can add that
- * many characters into the buffer after a backslash has occured.
+ * many characters into the buffer after a backslash has occurred.
*/
if (ptr + len > ptr_max) {
diff --git a/src/globals.c b/src/globals.c
index 47042088..1aaa8c67 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -89,7 +89,7 @@ ZEROINIT (Display *, _XHeadOfDisplayList, NULL);
* Holds the two event type codes for this extension. The event type codes
* for this extension may vary depending on how many extensions are installed
* already, so the initial values given below will be added to the base event
- * code that is aquired when this extension is installed.
+ * code that is acquired when this extension is installed.
*
* These two variables must be available to programs that use this extension.
*/
diff --git a/src/imConv.c b/src/imConv.c
index c3c1974d..48bc7900 100644
--- a/src/imConv.c
+++ b/src/imConv.c
@@ -24,7 +24,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
- Auther: Kazunori Nishihara, Fuji Xerox Co.,Ltd.
+ Author: Kazunori Nishihara, Fuji Xerox Co.,Ltd.
kaz@ssdev.ksp.fujixerox.co.jp
Modifier: Takashi Fujiwara FUJITSU LIMITED
fujiwara@a80.tech.yk.fujitsu.co.jp
@@ -96,7 +96,7 @@ _XimGetLocaleCode (
/*
* Returns the locale dependent representation of a keysym.
- * The locale's encoding is passed in form of pointer to UCS convertor.
+ * The locale's encoding is passed in form of pointer to UCS converter.
* The resulting multi-byte sequence is placed starting at buf (a buffer
* with nbytes bytes, nbytes should be >= 8) and is NUL terminated.
* Returns the length of the resulting multi-byte sequence, excluding the
diff --git a/src/os2Stubs.c b/src/os2Stubs.c
index ee09cb5f..3f2b9e89 100644
--- a/src/os2Stubs.c
+++ b/src/os2Stubs.c
@@ -281,7 +281,7 @@ int nfds;
int i;
APIRET rc;
/* First we determine up to which descriptor we need to check. */
-/* No need to check up to 256 if we don't have to (and usually we dont...)*/
+/* No need to check up to 256 if we don't have to (and usually we don't...)*/
/* Note: stuff here is hardcoded for fd_sets which are int[8] as in EMX!!! */
if(nfds > sd->max_fds){
diff --git a/src/util/makekeys.c b/src/util/makekeys.c
index 42bfd043..e847ef4c 100644
--- a/src/util/makekeys.c
+++ b/src/util/makekeys.c
@@ -68,7 +68,7 @@ parse_line(const char *buf, char *key, KeySym *val, char *prefix)
char *tmp, *tmpa;
/* See if we can catch a straight XK_foo 0x1234-style definition first;
- * the trickery around tmp is to account for prefices. */
+ * the trickery around tmp is to account for prefixes. */
i = sscanf(buf, "#define %127s 0x%lx", key, val);
if (i == 2 && (tmp = strstr(key, "XK_"))) {
memcpy(prefix, key, (size_t)(tmp - key));
diff --git a/src/xcms/HVCGcVC.c b/src/xcms/HVCGcVC.c
index 7ace5f13..e9eb3a1e 100644
--- a/src/xcms/HVCGcVC.c
+++ b/src/xcms/HVCGcVC.c
@@ -170,7 +170,7 @@ XcmsTekHVCClipVC (
}
if (pColor->spec.TekHVC.V < hvc_max.spec.TekHVC.V) {
- /* return the intersection of the perpindicular line through */
+ /* return the intersection of the perpendicular line through */
/* the value and chroma given and the line from 0,0 and hvc_max. */
Chroma = pColor->spec.TekHVC.C;
Value = pColor->spec.TekHVC.V;
diff --git a/src/xcms/HVCMxC.c b/src/xcms/HVCMxC.c
index 074844cc..3eb0929d 100644
--- a/src/xcms/HVCMxC.c
+++ b/src/xcms/HVCMxC.c
@@ -39,7 +39,7 @@
* TekHVCMxC.c
*
* DESCRIPTION
- * Source for the XcmsTekHVCQueryMaxC() gamut boudary
+ * Source for the XcmsTekHVCQueryMaxC() gamut boundary
* querying routine.
*
*/
diff --git a/src/xcms/LRGB.c b/src/xcms/LRGB.c
index 109ab725..4dcec597 100644
--- a/src/xcms/LRGB.c
+++ b/src/xcms/LRGB.c
@@ -1178,7 +1178,7 @@ _XcmsTableSearch(
/*
* DESCRIPTION
- * A binary search through the specificied table.
+ * A binary search through the specified table.
*
* RETURNS
* Returns 0 if failed; otherwise non-zero.
diff --git a/src/xcms/cmsInt.c b/src/xcms/cmsInt.c
index 83be2627..059b7d58 100644
--- a/src/xcms/cmsInt.c
+++ b/src/xcms/cmsInt.c
@@ -225,7 +225,7 @@ _XcmsFreeDefaultCCCs(
/*
* DESCRIPTION
* This routine frees the default XcmsCCC's associated with
- * each screen and its associated substructures as neccessary.
+ * each screen and its associated substructures as necessary.
*
* RETURNS
* void
@@ -297,7 +297,7 @@ _XcmsInitScrnInfo(
/*
* Check if the XcmsCCC's for each screen has been created.
- * Really dont need to be created until some routine uses the Xcms
+ * Really don't need to be created until some routine uses the Xcms
* API routines.
*/
if ((XcmsCCC)dpy->cms.defaultCCCs == NULL) {
diff --git a/src/xcms/cmsProp.c b/src/xcms/cmsProp.c
index 77c072f2..4e6a4622 100644
--- a/src/xcms/cmsProp.c
+++ b/src/xcms/cmsProp.c
@@ -95,7 +95,7 @@ _XcmsGetElement(
/*
* NAME
- * _XcmsGetProperty -- Determine the existance of a property
+ * _XcmsGetProperty -- Determine the existence of a property
*
* SYNOPSIS
*/
diff --git a/src/xlibi18n/XDefaultOMIF.c b/src/xlibi18n/XDefaultOMIF.c
index c3090c36..2946f48d 100644
--- a/src/xlibi18n/XDefaultOMIF.c
+++ b/src/xlibi18n/XDefaultOMIF.c
@@ -1071,7 +1071,7 @@ init_om(
/* directional dependent drawing */
om->core.directional_dependent = False;
- /* contexual drawing */
+ /* contextual drawing */
om->core.contextual_drawing = False;
/* context dependent */
diff --git a/src/xlibi18n/XlcPublic.h b/src/xlibi18n/XlcPublic.h
index 3d94ef37..bab7d690 100644
--- a/src/xlibi18n/XlcPublic.h
+++ b/src/xlibi18n/XlcPublic.h
@@ -136,7 +136,7 @@ extern Bool _XlcAddCharSet(
/* Retrieves a number of attributes of an XlcCharSet.
Return NULL if successful, otherwise the name of the first argument
- specifiying a nonexistent attribute. */
+ specifying a nonexistent attribute. */
extern char *_XlcGetCSValues(
XlcCharSet charset,
...
diff --git a/src/xlibi18n/Xlcint.h b/src/xlibi18n/Xlcint.h
index ebef95ba..f058b367 100644
--- a/src/xlibi18n/Xlcint.h
+++ b/src/xlibi18n/Xlcint.h
@@ -655,7 +655,7 @@ typedef struct {
/*
* An X Input Manager (IM). Implementations may need to extend this data
- * structure to accomodate additional data, state information etc.
+ * structure to accommodate additional data, state information etc.
*/
typedef struct _XIM {
XIMMethods methods; /* method list of this IM */
@@ -739,7 +739,7 @@ typedef struct {
/*
* an Input Context. Implementations may need to extend this data
- * structure to accomodate additional data, state information etc.
+ * structure to accommodate additional data, state information etc.
*/
typedef struct _XIC {
XICMethods methods; /* method list of this IC */
diff --git a/src/xlibi18n/lcCharSet.c b/src/xlibi18n/lcCharSet.c
index c0380d4a..7f145260 100644
--- a/src/xlibi18n/lcCharSet.c
+++ b/src/xlibi18n/lcCharSet.c
@@ -121,7 +121,7 @@ static XlcResource resources[] = {
/* Retrieves a number of attributes of an XlcCharSet.
Return NULL if successful, otherwise the name of the first argument
- specifiying a nonexistent attribute. */
+ specifying a nonexistent attribute. */
static char *
get_values(
XlcCharSet charset,
@@ -137,7 +137,7 @@ get_values(
/* Retrieves a number of attributes of an XlcCharSet.
Return NULL if successful, otherwise the name of the first argument
- specifiying a nonexistent attribute. */
+ specifying a nonexistent attribute. */
char *
_XlcGetCSValues(XlcCharSet charset, ...)
{
diff --git a/src/xlibi18n/lcDB.c b/src/xlibi18n/lcDB.c
index 5b8fe3d0..1b1f7e5d 100644
--- a/src/xlibi18n/lcDB.c
+++ b/src/xlibi18n/lcDB.c
@@ -1233,7 +1233,7 @@ _XlcGetLocaleDataBase(
/* _XlcDestroyLocaleDataBase(lcd) */
/*----------------------------------------------------------------------*/
/* This function destroy the XLocale Database that bound to the */
-/* specified lcd. If the XLocale Database is refered from some */
+/* specified lcd. If the XLocale Database is referred from some */
/* other lcd, this function just decreases reference count of */
/* the database. If no locale refers the database, this function */
/* remove it from the cache list and free work area. */
diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c
index 4f426a36..2af750f7 100644
--- a/src/xlibi18n/lcFile.c
+++ b/src/xlibi18n/lcFile.c
@@ -212,7 +212,7 @@ xlocaledir(
if (dir) {
#ifndef WIN32
/*
- * Only use the user-supplied path if the process isn't priviledged.
+ * Only use the user-supplied path if the process isn't privileged.
*/
if (getuid() == geteuid() && getgid() == getegid()) {
#if defined(HASSETUGID)
@@ -227,7 +227,7 @@ xlocaledir(
}
#else
/*
- * If there are saved ID's the process might still be priviledged
+ * If there are saved ID's the process might still be privileged
* even though the above test succeeded. If issetugid() and
* getresgid() aren't available, test this by trying to set
* euid to 0.
@@ -242,7 +242,7 @@ xlocaledir(
priv = 0;
} else {
if (seteuid(oldeuid) == -1) {
- /* XXX ouch, coudn't get back to original uid
+ /* XXX ouch, couldn't get back to original uid
what can we do ??? */
_exit(127);
}
@@ -290,7 +290,7 @@ xlocalelibdir(
if (dir) {
#ifndef WIN32
/*
- * Only use the user-supplied path if the process isn't priviledged.
+ * Only use the user-supplied path if the process isn't privileged.
*/
if (getuid() == geteuid() && getgid() == getegid()) {
#if defined(HASSETUGID)
@@ -305,7 +305,7 @@ xlocalelibdir(
}
#else
/*
- * If there are saved ID's the process might still be priviledged
+ * If there are saved ID's the process might still be privileged
* even though the above test succeeded. If issetugid() and
* getresgid() aren't available, test this by trying to set
* euid to 0.
@@ -320,7 +320,7 @@ xlocalelibdir(
priv = 0;
} else {
if (seteuid(oldeuid) == -1) {
- /* XXX ouch, coudn't get back to original uid
+ /* XXX ouch, couldn't get back to original uid
what can we do ??? */
_exit(127);
}