From 415a3a9b966c1522657d435a1785904f41accc78 Mon Sep 17 00:00:00 2001 From: uqs Date: Fri, 30 Dec 2011 10:58:14 +0000 Subject: Spelling fixes for usr.sbin/ --- usr.sbin/rpc.lockd/kern.c | 2 +- usr.sbin/rpc.lockd/lockd_lock.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.sbin/rpc.lockd') diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c index 3c0fe04..e0f63ab 100644 --- a/usr.sbin/rpc.lockd/kern.c +++ b/usr.sbin/rpc.lockd/kern.c @@ -167,7 +167,7 @@ client_request(void) goto err; } daemon_uid = pw->pw_uid; - /* drop our root priviledges */ + /* drop our root privileges */ (void)lockd_seteuid(daemon_uid); for (;;) { diff --git a/usr.sbin/rpc.lockd/lockd_lock.c b/usr.sbin/rpc.lockd/lockd_lock.c index 5900bfa..6c409ad 100644 --- a/usr.sbin/rpc.lockd/lockd_lock.c +++ b/usr.sbin/rpc.lockd/lockd_lock.c @@ -69,7 +69,7 @@ __FBSDID("$FreeBSD$"); * A set of utilities for managing file locking * * XXX: All locks are in a linked list, a better structure should be used - * to improve search/access effeciency. + * to improve search/access efficiency. */ /* struct describing a lock */ @@ -98,7 +98,7 @@ struct blockedlocklist_head blockedlocklist_head = LIST_HEAD_INITIALIZER(blocked #define LKST_LOCKED 1 /* lock is locked */ /* XXX: Is this flag file specific or lock specific? */ #define LKST_WAITING 2 /* file is already locked by another host */ -#define LKST_PROCESSING 3 /* child is trying to aquire the lock */ +#define LKST_PROCESSING 3 /* child is trying to acquire the lock */ #define LKST_DYING 4 /* must dies when we get news from the child */ /* struct describing a monitored host */ @@ -1917,7 +1917,7 @@ testlock(struct nlm4_lock *lock, bool_t exclusive, int flags __unused) } /* - * getlock: try to aquire the lock. + * getlock: try to acquire the lock. * If file is already locked and we can sleep, put the lock in the list with * status LKST_WAITING; it'll be processed later. * Otherwise try to lock. If we're allowed to block, fork a child which @@ -1947,7 +1947,7 @@ getlock(nlm4_lockargs *lckarg, struct svc_req *rqstp, const int flags) } if (lckarg->alock.fh.n_len != sizeof(fhandle_t)) { - debuglog("recieved fhandle size %d, local size %d", + debuglog("received fhandle size %d, local size %d", lckarg->alock.fh.n_len, (int)sizeof(fhandle_t)); } -- cgit v1.1