From 945a3a05e53ddd32578d5146ec4943fe9297aba4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 21 Jul 2020 19:04:11 -0700 Subject: Fix spelling/wording issues Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith --- README.md | 2 +- greeter/Login.c | 2 +- include/greet.h | 6 +++--- man/xdm.man | 2 +- xdm/access.c | 2 +- xdm/auth.c | 4 ++-- xdm/choose.c | 2 +- xdm/dm.c | 2 +- xdm/genauth.c | 4 ++-- xdm/resource.c | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index d91c785..4ad19af 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Xorg mailing list: https://lists.x.org/mailman/listinfo/xorg -The master development code repository can be found at: +The primary development code repository can be found at: https://gitlab.freedesktop.org/xorg/app/xdm diff --git a/greeter/Login.c b/greeter/Login.c index 6a99050..5d20a44 100644 --- a/greeter/Login.c +++ b/greeter/Login.c @@ -1716,7 +1716,7 @@ static void Initialize ( #ifndef USE_XFT /* * Note that the second argument is a GCid -- QueryFont accepts a GCid and - * returns the curently contained font. + * returns the currently contained font. */ if (w->login.textFont == NULL) diff --git a/include/greet.h b/include/greet.h index 0d607ba..60288ab 100644 --- a/include/greet.h +++ b/include/greet.h @@ -92,7 +92,7 @@ struct dlfuncs { /* * Return values for GreetUser(); - * Values must be explictly defined because the greet library + * Values must be explicitly defined because the greet library * may come from a different vendor. * Negative values indicate an error. */ @@ -108,7 +108,7 @@ typedef enum { * should start a session. * * GreetUser is passed the xdm struct display pointer, a pointer to a - * Display, and pointers to greet and verify structs. If it expectes xdm + * Display, and pointers to greet and verify structs. If it expects xdm * to run the session, it fills in the Display pointer and the fields * of the greet and verify structs. * @@ -133,7 +133,7 @@ typedef greet_user_rtn (*GreetUserProc)(struct display *, Display **, * are referenced indirectly through function pointers. The definitions * here, are used to hold the pointers to the functions in the main xdm * executable. The pointers are filled in when the GreetUser function is - * called, with the pointer values passed as a paramter. + * called, with the pointer values passed as a parameter. */ extern int (*__xdm_PingServer)(struct display *d, Display *alternateDpy); diff --git a/man/xdm.man b/man/xdm.man index ef57d8c..5e63e48 100644 --- a/man/xdm.man +++ b/man/xdm.man @@ -362,7 +362,7 @@ of \fBDisplayManager.randomFile\fP to generate the seed. A UNIX domain socket name or a TCP socket port number on local host on which a Pseudo-Random Number Generator Daemon, like EGD (http://egd.sourceforge.net) is listening, in order to generate the -autorization keys. Either a non null port or a valid socket name must +authorization keys. Either a non null port or a valid socket name must be specified. The default is to use the Unix-domain socket \fI/tmp/entropy\fP. .PP diff --git a/xdm/access.c b/xdm/access.c index 07b1e63..7d6dfd0 100644 --- a/xdm/access.c +++ b/xdm/access.c @@ -613,7 +613,7 @@ ScanAccessDatabase (void) datafile = fopen (accessFile, "r"); if (!datafile) { - LogError ("Cannot open access control file %s, no XDMCP reqeusts will be granted\n", accessFile); + LogError ("Cannot open access control file %s, no XDMCP requests will be granted\n", accessFile); return 0; } ReadAccessDatabase (datafile); diff --git a/xdm/auth.c b/xdm/auth.c index 1e5d8e9..e24a5b9 100644 --- a/xdm/auth.c +++ b/xdm/auth.c @@ -265,7 +265,7 @@ CleanUpFileName (char *src, char *dst, int len) } /* Checks to see if specified directory exists, makes it if not - * Returns: 0 if already exists, 1 if created, < 0 if error occured + * Returns: 0 if already exists, 1 if created, < 0 if error occurred */ static int CheckServerAuthDir (const char *path, struct stat *statb, int mode) @@ -779,7 +779,7 @@ DefineLocal (FILE *file, Xauth *auth) #if defined(hpux) /* * For HP-UX, HP's Xlib expects a fully-qualified domain name, which - * is achieved by using gethostname(). For compatability, we must + * is achieved by using gethostname(). For compatibility, we must * also still create the entry using uname(). */ char tmp_displayname[100]; diff --git a/xdm/choose.c b/xdm/choose.c index 7158a7c..c167964 100644 --- a/xdm/choose.c +++ b/xdm/choose.c @@ -430,7 +430,7 @@ ProcessChooserSocket (int fd) if (XdmcpReadARRAY8 (&buffer, &clientAddress)) { if (XdmcpReadCARD16 (&buffer, &connectionType)) { if (XdmcpReadARRAY8 (&buffer, &choice)) { - Debug ("Read from chooser succesfully\n"); + Debug ("Read from chooser successfully\n"); RegisterIndirectChoice (&clientAddress, connectionType, &choice); XdmcpDisposeARRAY8 (&choice); } else { diff --git a/xdm/dm.c b/xdm/dm.c index 1f1c4fb..d3fe376 100644 --- a/xdm/dm.c +++ b/xdm/dm.c @@ -430,7 +430,7 @@ StopAll (int n) { /* * We are a child xdm process that was killed by the - * master xdm before we were able to return from fork() + * parent xdm before we were able to return from fork() * and remove this signal handler. * * See defect XWSog08655 for more information. diff --git a/xdm/genauth.c b/xdm/genauth.c index cd2ad61..38a0215 100644 --- a/xdm/genauth.c +++ b/xdm/genauth.c @@ -380,7 +380,7 @@ InitXdmcpWrapper (void) randomDevice, errno); } # endif - /* Try some pseudo-random number genrator daemon next */ + /* Try some pseudo-random number generator daemon next */ if (prngdSocket != NULL || prngdPort != 0) { if (get_prngd_bytes((char *)tmpkey, sizeof(tmpkey), prngdPort, prngdSocket) == 0) { @@ -475,7 +475,7 @@ GenerateAuthData (char *auth, int len) LogError("Cannot open randomDevice \"%s\", errno = %d\n", randomDevice, errno); # endif /* DEV_RANDOM */ - /* Try some pseudo-random number genrator daemon next */ + /* Try some pseudo-random number generator daemon next */ if (prngdSocket != NULL || prngdPort != 0) { if (get_prngd_bytes(auth, len, prngdPort, prngdSocket) == 0) { return 1; diff --git a/xdm/resource.c b/xdm/resource.c index 316ace4..028c430 100644 --- a/xdm/resource.c +++ b/xdm/resource.c @@ -138,7 +138,7 @@ int choiceTimeout; /* chooser choice timeout */ # define DEF_GREETER_LIB "/usr/lib/X11/xdm/libXdmGreet.so" #endif -#define DEF_UDP_PORT "177" /* registered XDMCP port, dont change */ +#define DEF_UDP_PORT "177" /* registered XDMCP port, don't change */ struct dmResources { const char *name, *class; -- cgit v1.2.3